mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
Merge 31272f12b3 into e13f413ef5
This commit is contained in:
commit
cb65034b63
1 changed files with 4 additions and 0 deletions
|
|
@ -313,6 +313,10 @@ func (self *worker) makeCurrent() {
|
||||||
}
|
}
|
||||||
|
|
||||||
parent := self.chain.GetBlock(current.block.ParentHash())
|
parent := self.chain.GetBlock(current.block.ParentHash())
|
||||||
|
if parent == nil {
|
||||||
|
// in case geth quits the blockchain db can be closed and this returns nil
|
||||||
|
return
|
||||||
|
}
|
||||||
current.coinbase.SetGasPool(core.CalcGasLimit(parent))
|
current.coinbase.SetGasPool(core.CalcGasLimit(parent))
|
||||||
|
|
||||||
self.current = current
|
self.current = current
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue