Skip to content

Commit e7111e0

Browse files
feat(taiko-client): only invalid status need to return error (#17266)
Co-authored-by: David <[email protected]>
1 parent bca493f commit e7111e0

File tree

1 file changed

+1
-1
lines changed
  • packages/taiko-client/driver/chain_syncer/beaconsync

1 file changed

+1
-1
lines changed

packages/taiko-client/driver/chain_syncer/beaconsync/syncer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func (s *Syncer) TriggerBeaconSync(blockID uint64) error {
7676
if err != nil {
7777
return err
7878
}
79-
if fcRes.PayloadStatus.Status != engine.SYNCING {
79+
if fcRes.PayloadStatus.Status == engine.INVALID {
8080
return fmt.Errorf("unexpected ForkchoiceUpdate response status: %s", fcRes.PayloadStatus.Status)
8181
}
8282

0 commit comments

Comments
 (0)