Skip to content

Commit

Permalink
fix(taiko-client): dont check l1heightInAnchor vs l1Height when detec…
Browse files Browse the repository at this point in the history
…ting reorg (#18110)

Co-authored-by: David <[email protected]>
  • Loading branch information
cyberhorsey and davidtaikocha authored Sep 17, 2024
1 parent 5ed6c80 commit 7ed9b6f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions packages/taiko-client/pkg/rpc/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -683,16 +683,6 @@ func (c *Client) checkSyncedL1SnippetFromAnchor(
return false, err
}

if l1HeightInAnchor+1 != l1Height {
log.Info(
"Reorg detected due to L1 height mismatch",
"blockID", blockID,
"l1HeightInAnchor", l1HeightInAnchor,
"l1Height", l1Height,
)
return true, nil
}

if parentGasUsed != uint32(parent.GasUsed()) {
log.Info(
"Reorg detected due to parent gas used mismatch",
Expand Down

0 comments on commit 7ed9b6f

Please sign in to comment.