miner: changed listener

This commit is contained in:
obscuren 2015-04-18 20:26:17 +02:00
parent 6830ddb659
commit c6c22301fa

@ -158,7 +158,7 @@ out:
select { select {
case event := <-events.Chan(): case event := <-events.Chan():
switch ev := event.(type) { switch ev := event.(type) {
case core.ChainHeadEvent: case core.NewMinedBlockEvent:
self.commitNewWork() self.commitNewWork()
case core.ChainSideEvent: case core.ChainSideEvent:
self.uncleMu.Lock() self.uncleMu.Lock()