Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
Giulio2002 committed Feb 22, 2025
1 parent c3ad9cc commit 05cfe12
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions turbo/execution/eth1/forkchoice.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,10 @@ func (e *EthereumExecutionModule) updateForkChoice(ctx context.Context, original
sendForkchoiceErrorWithoutWaiting(e.logger, outcomeCh, err, false)
return
}
if err := rawdb.TruncateCanonicalChain(ctx, tx, fcuHeader.Number.Uint64()+1); err != nil {
sendForkchoiceErrorWithoutWaiting(e.logger, outcomeCh, err, false)
return
}
if err := tx.Commit(); err != nil {
sendForkchoiceErrorWithoutWaiting(e.logger, outcomeCh, err, false)
return
Expand Down

0 comments on commit 05cfe12

Please sign in to comment.