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

Commit

Permalink
fix: protocol sync check bug
Browse files Browse the repository at this point in the history
  • Loading branch information
alexshliu committed Feb 20, 2023
1 parent 80fc0e9 commit ef5413b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/state/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func (s *State) startSubscriptions(ctx context.Context) {
case e := <-s.headerSyncedCh:
// Verify the protocol synced block, check if it exists in
// L2 execution engine.
if s.GetL2Head().Number.Cmp(e.Height) >= 0 {
if s.GetL2Head().Number.Cmp(e.SrcHeight) >= 0 {
if err := s.VerifyL2Block(ctx, e.SrcHash); err != nil {
log.Error("Check new verified L2 block error", "error", err)
continue
Expand Down

0 comments on commit ef5413b

Please sign in to comment.