aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-19 02:51:05 +0800
committerobscuren <geffobscura@gmail.com>2015-04-19 02:51:05 +0800
commitc8cc523d4d073f3405057554b5a0881118eba6f1 (patch)
tree30192d7d39b6ce6f125f8e22609a43722628966c
parenta1d97ea4dbb5b4462b898f32b1c55e925a465227 (diff)
downloaddexon-c8cc523d4d073f3405057554b5a0881118eba6f1.tar
dexon-c8cc523d4d073f3405057554b5a0881118eba6f1.tar.gz
dexon-c8cc523d4d073f3405057554b5a0881118eba6f1.tar.bz2
dexon-c8cc523d4d073f3405057554b5a0881118eba6f1.tar.lz
dexon-c8cc523d4d073f3405057554b5a0881118eba6f1.tar.xz
dexon-c8cc523d4d073f3405057554b5a0881118eba6f1.tar.zst
dexon-c8cc523d4d073f3405057554b5a0881118eba6f1.zip
miner: reverted back to old event
-rw-r--r--miner/worker.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/miner/worker.go b/miner/worker.go
index 007213a29..daabd3db5 100644
--- a/miner/worker.go
+++ b/miner/worker.go
@@ -158,7 +158,7 @@ out:
select {
case event := <-events.Chan():
switch ev := event.(type) {
- case core.NewMinedBlockEvent:
+ case core.ChainHeadEvent:
self.commitNewWork()
case core.ChainSideEvent:
self.uncleMu.Lock()