Skip to content
This repository was archived by the owner on May 11, 2024. It is now read-only.

feat(pkg): improve/simplify reorg check logic #647

Merged
merged 17 commits into from
Mar 22, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update driver/chain_syncer/calldata/syncer.go
Co-authored-by: David <[email protected]>
  • Loading branch information
YoGhurt111 and davidtaikocha authored Mar 20, 2024
commit 3ae1d24587ed8d1c12b39d14f7b87a0c5ff90e70
2 changes: 1 addition & 1 deletion driver/chain_syncer/calldata/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ func (s *Syncer) checkLastVerifiedBlockMismatch(ctx context.Context) (*rpc.Reorg

stateVars, err := s.rpc.GetProtocolStateVariables(&bind.CallOpts{Context: ctx})
if err != nil {
return reorgCheckResult, err
return nil, err
}

if s.state.GetL2Head().Number.Uint64() < stateVars.B.LastVerifiedBlockId {
Expand Down
Loading