Skip to content

Commit

Permalink
Set correct block-hash in receipts after finishing the block
Browse files Browse the repository at this point in the history
  • Loading branch information
HerbertJordan committed Nov 28, 2024
1 parent 6a06095 commit b1e9197
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gossip/c_block_callbacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,9 @@ func consensusCallbackBeginBlockFn(
evmBlock.Hash = block.Hash()
evmBlock.Duration = blockDuration

// Update block-hash references in logs.
// Update block-hash references in receipts and logs.
for i := range allReceipts {
allReceipts[i].BlockHash = block.Hash()
for j := range allReceipts[i].Logs {
allReceipts[i].Logs[j].BlockHash = block.Hash()
}
Expand Down

0 comments on commit b1e9197

Please sign in to comment.