mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 13:21:37 +00:00
Merge 4668a93150 into 7c9032dff6
This commit is contained in:
commit
df9879c32c
1 changed files with 4 additions and 0 deletions
|
|
@ -308,6 +308,10 @@ func (r *Receipt) DeriveFields(signer Signer, context DeriveReceiptContext) {
|
|||
r.Logs[j].TxHash = r.TxHash
|
||||
r.Logs[j].TxIndex = context.TxIndex
|
||||
r.Logs[j].Index = logIndex
|
||||
// A canonically-included log is by definition not removed; reset the
|
||||
// transient Removed flag so a reused log object can't carry a stale
|
||||
// reorg marking into a canonical receipt.
|
||||
r.Logs[j].Removed = false
|
||||
logIndex++
|
||||
}
|
||||
// Also derive the Bloom if not derived yet
|
||||
|
|
|
|||
Loading…
Reference in a new issue