Skip to content

Commit

Permalink
do not use fork choice for finalised block in zk (#1075)
Browse files Browse the repository at this point in the history
  • Loading branch information
hexoscott authored and Stefan-Ethernal committed Sep 20, 2024
1 parent acbc88a commit 8a0ab45
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions turbo/rpchelper/rpc_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,6 @@ func GetLatestBlockNumber(tx kv.Tx) (uint64, error) {
}

func GetFinalizedBlockNumber(tx kv.Tx) (uint64, error) {
forkchoiceFinalizedHash := rawdb.ReadForkchoiceFinalized(tx)
if forkchoiceFinalizedHash != (libcommon.Hash{}) {
forkchoiceFinalizedNum := rawdb.ReadHeaderNumber(tx, forkchoiceFinalizedHash)
if forkchoiceFinalizedNum != nil {
return *forkchoiceFinalizedNum, nil
}
}

// get highest verified batch
highestVerifiedBatchNo, err := stages.GetStageProgress(tx, stages.L1VerificationsBatchNo)
if err != nil {
Expand Down

0 comments on commit 8a0ab45

Please sign in to comment.