aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-04-16 10:07:21 +0800
committerobscuren <geffobscura@gmail.com>2014-04-16 10:07:21 +0800
commitd811920d8b5643b944a7df58d5d75095539242c4 (patch)
tree18c4ead3b5db4c99fd63760582a051b144b178c5
parent9c6aca78933c14ca107da30c4690808950718368 (diff)
downloaddexon-d811920d8b5643b944a7df58d5d75095539242c4.tar
dexon-d811920d8b5643b944a7df58d5d75095539242c4.tar.gz
dexon-d811920d8b5643b944a7df58d5d75095539242c4.tar.bz2
dexon-d811920d8b5643b944a7df58d5d75095539242c4.tar.lz
dexon-d811920d8b5643b944a7df58d5d75095539242c4.tar.xz
dexon-d811920d8b5643b944a7df58d5d75095539242c4.tar.zst
dexon-d811920d8b5643b944a7df58d5d75095539242c4.zip
Hack for miner problem added w/ note
@maranh please check
-rw-r--r--ethminer/miner.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/ethminer/miner.go b/ethminer/miner.go
index d84977342..5bbf6b977 100644
--- a/ethminer/miner.go
+++ b/ethminer/miner.go
@@ -119,6 +119,9 @@ func (miner *Miner) listener() {
miner.block.SetUncles(miner.uncles)
}
+ // FIXME @ maranh, first block doesn't need this. Everything after the first block does.
+ // Please check and fix
+ miner.ethereum.StateManager().Prepare(miner.block.State(), miner.block.State())
// Apply all transactions to the block
miner.ethereum.StateManager().ApplyTransactions(miner.block, miner.block.Transactions())
miner.ethereum.StateManager().AccumelateRewards(miner.block)