Skip to content

Commit

Permalink
Revert "core: remove unnecessary log copy (ethereum#27475)"
Browse files Browse the repository at this point in the history
This reverts commit 44a8cec.
  • Loading branch information
devopsbo3 authored Nov 10, 2023
1 parent ff8fefe commit 95a2b27
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 95a2b27

Please sign in to comment.