diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-06-15 23:44:25 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-06-15 23:44:25 +0800 |
commit | f2a2164184a9397d8e6100c370595ccdcd00ca0b (patch) | |
tree | be5f43c0255c6351b2c1b9a6db191318974fe664 /core | |
parent | f475a013264b5036dfe9fcc04e21c4112845b9a2 (diff) | |
parent | 1e3f4877c0e9ebf58ffa06b0b119fdf3bab21658 (diff) | |
download | dexon-f2a2164184a9397d8e6100c370595ccdcd00ca0b.tar.gz 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.go | 8 |
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 } |