Skip to content

Commit

Permalink
fix: miner set expected root hash
Browse files Browse the repository at this point in the history
  • Loading branch information
joeylichang committed Apr 15, 2024
1 parent 3f89824 commit 211a1a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,7 @@ func (w *worker) resultLoop() {
logs = append(logs, receipt.Logs...)
}
// Commit block and state to database.
task.state.SetExpectedStateRoot(block.Root())
_, err := w.chain.WriteBlockAndSetHead(block, receipts, logs, task.state, true)
if err != nil {
log.Error("Failed writing block to chain", "err", err)
Expand Down

0 comments on commit 211a1a0

Please sign in to comment.