diff --git a/core/blockchain.go b/core/blockchain.go index 9fd7582960a8..66b6fdcddc67 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -2263,9 +2263,10 @@ 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 - l.Removed = removed - logs = append(logs, &l) + if removed { + log.Removed = true + } + logs = append(logs, log) } } return logs