diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2016-06-13 21:16:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-13 21:16:09 +0800 |
commit | a38be3eb488a349693a9c9905ab015278281f8db (patch) | |
tree | 34fa99ba38f421d9c7ffd308ed544cd5053df228 /eth/gasprice.go | |
parent | 73c028c40a4f1336a0ab4b9773be0a9d7719777f (diff) | |
parent | f9917c8c7b6d16daadebd72977e56a8adc0382b0 (diff) | |
download | go-tangerine-a38be3eb488a349693a9c9905ab015278281f8db.tar go-tangerine-a38be3eb488a349693a9c9905ab015278281f8db.tar.gz go-tangerine-a38be3eb488a349693a9c9905ab015278281f8db.tar.bz2 go-tangerine-a38be3eb488a349693a9c9905ab015278281f8db.tar.lz go-tangerine-a38be3eb488a349693a9c9905ab015278281f8db.tar.xz go-tangerine-a38be3eb488a349693a9c9905ab015278281f8db.tar.zst go-tangerine-a38be3eb488a349693a9c9905ab015278281f8db.zip |
Merge pull request #2455 from zsfelfoldi/chaindb
core: improved chain db performance by using sequential keys
Diffstat (limited to 'eth/gasprice.go')
-rw-r--r-- | eth/gasprice.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/gasprice.go b/eth/gasprice.go index e0de89e62..ef203f8fe 100644 --- a/eth/gasprice.go +++ b/eth/gasprice.go @@ -166,7 +166,7 @@ func (self *GasPriceOracle) processBlock(block *types.Block) { func (self *GasPriceOracle) lowestPrice(block *types.Block) *big.Int { gasUsed := big.NewInt(0) - receipts := core.GetBlockReceipts(self.eth.ChainDb(), block.Hash()) + receipts := core.GetBlockReceipts(self.eth.ChainDb(), block.Hash(), block.NumberU64()) if len(receipts) > 0 { if cgu := receipts[len(receipts)-1].CumulativeGasUsed; cgu != nil { gasUsed = receipts[len(receipts)-1].CumulativeGasUsed |