core, params, tests: add DAO hard-fork balance moves

This commit is contained in:
Péter Szilágyi
2016-07-11 13:55:11 +03:00
parent 7f00e8c033
commit 461cdb593b
10 changed files with 2011 additions and 42 deletions

View File

@ -490,7 +490,11 @@ func (self *worker) commitNewWork() {
glog.V(logger.Info).Infoln("Could not create new env for mining, retrying on next block.")
return
}
// Create the current work task and check any fork transitions needed
work := self.current
if self.config.DAOForkSupport && self.config.DAOForkBlock != nil && self.config.DAOForkBlock.Cmp(header.Number) == 0 {
core.ApplyDAOHardFork(work.state)
}
/* //approach 1
transactions := self.eth.TxPool().GetTransactions()