From e7111e0a84dcdad0a695c62be69304a02763e4a0 Mon Sep 17 00:00:00 2001 From: maskpp Date: Mon, 20 May 2024 22:52:46 +0800 Subject: [PATCH] feat(taiko-client): only invalid status need to return error (#17266) Co-authored-by: David --- packages/taiko-client/driver/chain_syncer/beaconsync/syncer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/taiko-client/driver/chain_syncer/beaconsync/syncer.go b/packages/taiko-client/driver/chain_syncer/beaconsync/syncer.go index d593d868be2..f03a9309d1d 100644 --- a/packages/taiko-client/driver/chain_syncer/beaconsync/syncer.go +++ b/packages/taiko-client/driver/chain_syncer/beaconsync/syncer.go @@ -76,7 +76,7 @@ func (s *Syncer) TriggerBeaconSync(blockID uint64) error { if err != nil { return err } - if fcRes.PayloadStatus.Status != engine.SYNCING { + if fcRes.PayloadStatus.Status == engine.INVALID { return fmt.Errorf("unexpected ForkchoiceUpdate response status: %s", fcRes.PayloadStatus.Status) }