Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
Giulio2002 committed Apr 29, 2024
1 parent 2b60c23 commit 197c74f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions eth/stagedsync/stage_mining_exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@ func SpawnMiningExecStage(s *StageState, tx kv.RwTx, cfg MiningExecCfg, ctx cont
return err
}

rh, err := domains.ComputeCommitment(ctx, true, current.Header.Number.Uint64(), s.LogPrefix())
if err != nil {
return fmt.Errorf("StateV3.Apply: %w", err)
}
current.Header.Root = libcommon.BytesToHash(rh)

logger.Debug("FinalizeBlockExecution", "block", current.Header.Number, "txn", current.Txs.Len(), "gas", current.Header.GasUsed, "receipt", current.Receipts.Len(), "payload", cfg.payloadId)

if histV3 {
Expand Down

0 comments on commit 197c74f

Please sign in to comment.