aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-06-15 23:44:25 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-06-15 23:44:25 +0800
commitf2a2164184a9397d8e6100c370595ccdcd00ca0b (patch)
treebe5f43c0255c6351b2c1b9a6db191318974fe664 /core
parentf475a013264b5036dfe9fcc04e21c4112845b9a2 (diff)
parent1e3f4877c0e9ebf58ffa06b0b119fdf3bab21658 (diff)
downloaddexon-f2a2164184a9397d8e6100c370595ccdcd00ca0b.tar
dexon-f2a2164184a9397d8e6100c370595ccdcd00ca0b.tar.gz
dexon-f2a2164184a9397d8e6100c370595ccdcd00ca0b.tar.bz2
dexon-f2a2164184a9397d8e6100c370595ccdcd00ca0b.tar.lz
dexon-f2a2164184a9397d8e6100c370595ccdcd00ca0b.tar.xz
dexon-f2a2164184a9397d8e6100c370595ccdcd00ca0b.tar.zst
dexon-f2a2164184a9397d8e6100c370595ccdcd00ca0b.zip
Merge pull request #990 from zsfelfoldi/gasprice
eth: add GasPriceOracle
Diffstat (limited to 'core')
-rw-r--r--core/block_processor.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/block_processor.go b/core/block_processor.go
index 54378b2b9..c01b110be 100644
--- a/core/block_processor.go
+++ b/core/block_processor.go
@@ -260,6 +260,12 @@ func (sm *BlockProcessor) processWithParent(block, parent *types.Block) (logs st
putTx(sm.extraDb, tx, block, uint64(i))
}
+ receiptsRlp := receipts.RlpEncode()
+ /*if len(receipts) > 0 {
+ glog.V(logger.Info).Infof("Saving %v receipts, rlp len is %v\n", len(receipts), len(receiptsRlp))
+ }*/
+ sm.extraDb.Put(append(receiptsPre, block.Hash().Bytes()...), receiptsRlp)
+
return state.Logs(), nil
}
@@ -404,6 +410,8 @@ func getBlockReceipts(db common.Database, bhash common.Hash) (receipts types.Rec
if err == nil {
err = rlp.DecodeBytes(rdata, &receipts)
+ } else {
+ glog.V(logger.Detail).Infof("getBlockReceipts error %v\n", err)
}
return
}