aboutsummaryrefslogtreecommitdiffstats
path: root/ethminer
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-06-16 17:51:16 +0800
committerobscuren <geffobscura@gmail.com>2014-06-16 17:51:16 +0800
commit48bca30e61f869a00111abe5d818ac7379854616 (patch)
tree6d74a838ae054a65f937f97c51f5780adae1642b /ethminer
parent9f62d441a7c785b88f89d52643a9deaa822af15e (diff)
downloadgo-tangerine-48bca30e61f869a00111abe5d818ac7379854616.tar
go-tangerine-48bca30e61f869a00111abe5d818ac7379854616.tar.gz
go-tangerine-48bca30e61f869a00111abe5d818ac7379854616.tar.bz2
go-tangerine-48bca30e61f869a00111abe5d818ac7379854616.tar.lz
go-tangerine-48bca30e61f869a00111abe5d818ac7379854616.tar.xz
go-tangerine-48bca30e61f869a00111abe5d818ac7379854616.tar.zst
go-tangerine-48bca30e61f869a00111abe5d818ac7379854616.zip
Fixed minor issue with the gas pool
Diffstat (limited to 'ethminer')
-rw-r--r--ethminer/miner.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/ethminer/miner.go b/ethminer/miner.go
index 8ea6c51e5..1ef9ca229 100644
--- a/ethminer/miner.go
+++ b/ethminer/miner.go
@@ -139,7 +139,9 @@ func (self *Miner) mineNewBlock() {
// Accumulate all valid transaction and apply them to the new state
// Error may be ignored. It's not important during mining
+ parent := self.ethereum.BlockChain().GetBlock(self.block.PrevHash)
coinbase := self.block.State().GetOrNewStateObject(self.block.Coinbase)
+ coinbase.SetGasPool(self.block.CalcGasLimit(parent))
receipts, txs, unhandledTxs, err := stateManager.ProcessTransactions(coinbase, self.block.State(), self.block, self.block, self.txs)
if err != nil {
ethutil.Config.Log.Debugln("[MINER]", err)