fixed merge

This commit is contained in:
obscuren
2015-02-20 15:18:07 +01:00
6 changed files with 130 additions and 9 deletions

View File

@ -117,9 +117,11 @@ out:
case event := <-events.Chan():
switch ev := event.(type) {
case core.ChainEvent:
println("miner start")
if self.current.block != ev.Block {
self.commitNewWork()
}
println("miner end")
case core.NewMinedBlockEvent:
self.commitNewWork()
}