diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-19 02:26:17 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-19 02:26:17 +0800 |
commit | c6c22301faaa47e18efcc6d6127b4d415b9ded21 (patch) | |
tree | e3973e4bfd0a44cd3ac04a3e8494098aee2dd911 | |
parent | 6830ddb659270b59b5a310fdc0e581b09fae5326 (diff) | |
download | dexon-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.go | 2 |
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() |