aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-19 02:26:17 +0800
committerobscuren <geffobscura@gmail.com>2015-04-19 02:26:17 +0800
commitc6c22301faaa47e18efcc6d6127b4d415b9ded21 (patch)
treee3973e4bfd0a44cd3ac04a3e8494098aee2dd911
parent6830ddb659270b59b5a310fdc0e581b09fae5326 (diff)
downloaddexon-c6c22301faaa47e18efcc6d6127b4d415b9ded21.tar
dexon-c6c22301faaa47e18efcc6d6127b4d415b9ded21.tar.gz
dexon-c6c22301faaa47e18efcc6d6127b4d415b9ded21.tar.bz2
dexon-c6c22301faaa47e18efcc6d6127b4d415b9ded21.tar.lz
dexon-c6c22301faaa47e18efcc6d6127b4d415b9ded21.tar.xz
dexon-c6c22301faaa47e18efcc6d6127b4d415b9ded21.tar.zst
dexon-c6c22301faaa47e18efcc6d6127b4d415b9ded21.zip
miner: changed listener
-rw-r--r--miner/worker.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/miner/worker.go b/miner/worker.go
index daabd3db5..007213a29 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.ChainHeadEvent:
+ case core.NewMinedBlockEvent:
self.commitNewWork()
case core.ChainSideEvent:
self.uncleMu.Lock()