mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Revert "core: remove unnecessary log copy (#27475)"
This reverts commit 44a8cecbc6.
This commit is contained in:
parent
ff8fefeb76
commit
95a2b27753
1 changed files with 3 additions and 2 deletions
|
|
@ -2053,10 +2053,11 @@ func (bc *BlockChain) collectLogs(b *types.Block, removed bool) []*types.Log {
|
|||
var logs []*types.Log
|
||||
for _, receipt := range receipts {
|
||||
for _, log := range receipt.Logs {
|
||||
l := *log
|
||||
if removed {
|
||||
log.Removed = true
|
||||
l.Removed = true
|
||||
}
|
||||
logs = append(logs, log)
|
||||
logs = append(logs, &l)
|
||||
}
|
||||
}
|
||||
return logs
|
||||
|
|
|
|||
Loading…
Reference in a new issue