diff options
author | obscuren <geffobscura@gmail.com> | 2014-06-17 17:06:06 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-06-17 17:06:06 +0800 |
commit | 53e30f750dd0c91279bfebe01bb12fd170cb74ff (patch) | |
tree | b14fcd5845ce21c774ae7730bdd1d42f8836e5a2 /ethminer | |
parent | 6656f99c54aef4aaf03ba76dcab3df1cc363ab9a (diff) | |
download | dexon-53e30f750dd0c91279bfebe01bb12fd170cb74ff.tar dexon-53e30f750dd0c91279bfebe01bb12fd170cb74ff.tar.gz dexon-53e30f750dd0c91279bfebe01bb12fd170cb74ff.tar.bz2 dexon-53e30f750dd0c91279bfebe01bb12fd170cb74ff.tar.lz dexon-53e30f750dd0c91279bfebe01bb12fd170cb74ff.tar.xz dexon-53e30f750dd0c91279bfebe01bb12fd170cb74ff.tar.zst dexon-53e30f750dd0c91279bfebe01bb12fd170cb74ff.zip |
Removal of manual updating of state objects
* You'll only ever need to update the state by calling Update. Update
will take care of the updating of it's child state objects.
Diffstat (limited to 'ethminer')
-rw-r--r-- | ethminer/miner.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ethminer/miner.go b/ethminer/miner.go index 1ef9ca229..4343b4333 100644 --- a/ethminer/miner.go +++ b/ethminer/miner.go @@ -154,6 +154,8 @@ func (self *Miner) mineNewBlock() { // Accumulate the rewards included for this block stateManager.AccumelateRewards(self.block.State(), self.block) + self.block.State().Update() + ethutil.Config.Log.Infoln("[MINER] Mining on block. Includes", len(self.txs), "transactions") // Find a valid nonce |