diff options
author | obscuren <geffobscura@gmail.com> | 2014-04-16 10:07:21 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-04-16 10:07:21 +0800 |
commit | d811920d8b5643b944a7df58d5d75095539242c4 (patch) | |
tree | 18c4ead3b5db4c99fd63760582a051b144b178c5 /ethminer/miner.go | |
parent | 9c6aca78933c14ca107da30c4690808950718368 (diff) | |
download | go-tangerine-d811920d8b5643b944a7df58d5d75095539242c4.tar go-tangerine-d811920d8b5643b944a7df58d5d75095539242c4.tar.gz go-tangerine-d811920d8b5643b944a7df58d5d75095539242c4.tar.bz2 go-tangerine-d811920d8b5643b944a7df58d5d75095539242c4.tar.lz go-tangerine-d811920d8b5643b944a7df58d5d75095539242c4.tar.xz go-tangerine-d811920d8b5643b944a7df58d5d75095539242c4.tar.zst go-tangerine-d811920d8b5643b944a7df58d5d75095539242c4.zip |
Hack for miner problem added w/ note
@maranh please check
Diffstat (limited to 'ethminer/miner.go')
-rw-r--r-- | ethminer/miner.go | 3 |
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) |