aboutsummaryrefslogtreecommitdiffstats
path: root/ethminer/miner.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-06-16 17:14:01 +0800
committerobscuren <geffobscura@gmail.com>2014-06-16 17:14:01 +0800
commit9f62d441a7c785b88f89d52643a9deaa822af15e (patch)
tree66510d5afe5d931e50e652a9cdc135fbc3fc9e3f /ethminer/miner.go
parentb836267401b731a2cd17c4866a9727b4a05ec124 (diff)
downloadgo-tangerine-9f62d441a7c785b88f89d52643a9deaa822af15e.tar
go-tangerine-9f62d441a7c785b88f89d52643a9deaa822af15e.tar.gz
go-tangerine-9f62d441a7c785b88f89d52643a9deaa822af15e.tar.bz2
go-tangerine-9f62d441a7c785b88f89d52643a9deaa822af15e.tar.lz
go-tangerine-9f62d441a7c785b88f89d52643a9deaa822af15e.tar.xz
go-tangerine-9f62d441a7c785b88f89d52643a9deaa822af15e.tar.zst
go-tangerine-9f62d441a7c785b88f89d52643a9deaa822af15e.zip
Moved gas limit err check to buy gas
Diffstat (limited to 'ethminer/miner.go')
-rw-r--r--ethminer/miner.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/ethminer/miner.go b/ethminer/miner.go
index 30b7ef35d..8ea6c51e5 100644
--- a/ethminer/miner.go
+++ b/ethminer/miner.go
@@ -139,7 +139,8 @@ 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
- receipts, txs, unhandledTxs, err := stateManager.ProcessTransactions(self.block.Coinbase, self.block.State(), self.block, self.block, self.txs)
+ coinbase := self.block.State().GetOrNewStateObject(self.block.Coinbase)
+ 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)
}