diff options
author | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-08-19 03:16:33 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-08-19 03:46:26 +0800 |
commit | b4369e10150f4c1211ae1bf2de6cf0567e9a7dd2 (patch) | |
tree | 9fdbbe9ff489253506059f2b4f48ac451d3d401e /core/block_processor.go | |
parent | 2497f28aa9d74f84468055fbc4675f379b7e4a5a (diff) | |
download | dexon-b4369e10150f4c1211ae1bf2de6cf0567e9a7dd2.tar dexon-b4369e10150f4c1211ae1bf2de6cf0567e9a7dd2.tar.gz dexon-b4369e10150f4c1211ae1bf2de6cf0567e9a7dd2.tar.bz2 dexon-b4369e10150f4c1211ae1bf2de6cf0567e9a7dd2.tar.lz dexon-b4369e10150f4c1211ae1bf2de6cf0567e9a7dd2.tar.xz dexon-b4369e10150f4c1211ae1bf2de6cf0567e9a7dd2.tar.zst dexon-b4369e10150f4c1211ae1bf2de6cf0567e9a7dd2.zip |
core, miner: write miner receipts
Diffstat (limited to 'core/block_processor.go')
-rw-r--r-- | core/block_processor.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/core/block_processor.go b/core/block_processor.go index 829e4314c..dd7fe8962 100644 --- a/core/block_processor.go +++ b/core/block_processor.go @@ -349,11 +349,9 @@ func (sm *BlockProcessor) GetBlockReceipts(bhash common.Hash) types.Receipts { // the depricated way by re-processing the block. func (sm *BlockProcessor) GetLogs(block *types.Block) (logs state.Logs, err error) { receipts := GetBlockReceipts(sm.chainDb, block.Hash()) - if len(receipts) > 0 { - // coalesce logs - for _, receipt := range receipts { - logs = append(logs, receipt.Logs()...) - } + // coalesce logs + for _, receipt := range receipts { + logs = append(logs, receipt.Logs()...) } return logs, nil } |