Resolved some bugs in the miner

* TODO nonce error sometimes persists
* Fixed mining on wrong blocks
* Fixed state error & receipt fail
This commit is contained in:
obscuren
2015-02-15 16:16:27 +01:00
parent c924a841c7
commit 2c3a014f03
3 changed files with 12 additions and 13 deletions

View File

@ -392,7 +392,7 @@ func (self *ChainManager) InsertChain(chain types.Blocks) error {
self.setTotalDifficulty(td)
self.insert(block)
self.transState = state.New(cblock.Root(), self.db) //state.New(cblock.Trie().Copy())
self.transState = state.New(cblock.Root(), self.db)
self.eventMux.Post(ChainEvent{block, td})
}