diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-09-30 00:36:16 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-10-19 15:03:09 +0800 |
commit | 42c8afd44006b170c20159abaadc31cc7545bec2 (patch) | |
tree | 49f150caef8b09d1584dc9635382b3938fee45e1 /core/block_processor.go | |
parent | b99fe27f8b4d37fe3838d52b682e99c85098ee59 (diff) | |
download | go-tangerine-42c8afd44006b170c20159abaadc31cc7545bec2.tar go-tangerine-42c8afd44006b170c20159abaadc31cc7545bec2.tar.gz go-tangerine-42c8afd44006b170c20159abaadc31cc7545bec2.tar.bz2 go-tangerine-42c8afd44006b170c20159abaadc31cc7545bec2.tar.lz go-tangerine-42c8afd44006b170c20159abaadc31cc7545bec2.tar.xz go-tangerine-42c8afd44006b170c20159abaadc31cc7545bec2.tar.zst go-tangerine-42c8afd44006b170c20159abaadc31cc7545bec2.zip |
core: differentiate receipt concensus and storage decoding
Diffstat (limited to 'core/block_processor.go')
-rw-r--r-- | core/block_processor.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/block_processor.go b/core/block_processor.go index 5dadd2a27..ba6350805 100644 --- a/core/block_processor.go +++ b/core/block_processor.go @@ -111,7 +111,7 @@ func (self *BlockProcessor) ApplyTransaction(gp GasPool, statedb *state.StateDB, } logs := statedb.GetLogs(tx.Hash()) - receipt.SetLogs(logs) + receipt.Logs = logs receipt.Bloom = types.CreateBloom(types.Receipts{receipt}) glog.V(logger.Debug).Infoln(receipt) @@ -364,7 +364,7 @@ func (sm *BlockProcessor) GetLogs(block *types.Block) (logs vm.Logs, err error) receipts := GetBlockReceipts(sm.chainDb, block.Hash()) // coalesce logs for _, receipt := range receipts { - logs = append(logs, receipt.Logs()...) + logs = append(logs, receipt.Logs...) } return logs, nil } |