Skip to content

Commit

Permalink
Revert "issue warning if calculated blockhash mismatched the datastre…
Browse files Browse the repository at this point in the history
…am one (…" (erigontech#575)

This reverts commit 55846ff.
  • Loading branch information
revitteth authored Jun 7, 2024
1 parent 22825a4 commit 8185604
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions eth/stagedsync/stage_execute_zkevm.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,16 +155,11 @@ Loop:

// exec loop variables
header := block.HeaderNoCopy()
preChangeBlockHash := header.Hash()
header.GasUsed = uint64(execRs.GasUsed)
header.ReceiptHash = types.DeriveSha(execRs.Receipts)
header.Bloom = execRs.Bloom
newBlockHash := block.Hash()
if cfg.chainConfig.IsForkId9Elderberry2(blockNum) && preChangeBlockHash != newBlockHash {
log.Warn(fmt.Sprintf("[%s] Blockhash mismatch", s.LogPrefix()), "datastreamBlockHash", preChangeBlockHash, "calculatedBlockHash", newBlockHash)
}
// don't move above header values setting - wrong hash will be calculated
prevBlockHash = newBlockHash
prevBlockHash = header.Hash()
prevBlockRoot = header.Root
stageProgress = blockNum
currentStateGas = currentStateGas + header.GasUsed
Expand Down

0 comments on commit 8185604

Please sign in to comment.