aboutsummaryrefslogtreecommitdiffstats
path: root/ethminer
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-15 21:00:25 +0800
committerobscuren <geffobscura@gmail.com>2014-05-15 21:00:25 +0800
commit88686cbed27ad2e7d5c111051e06c270b1b352a3 (patch)
tree4ab257b480847f59dc2e1f1eb018db4475bb4121 /ethminer
parentf95993e326567555d0a2e1f96974c34e7b3a214f (diff)
downloadgo-tangerine-88686cbed27ad2e7d5c111051e06c270b1b352a3.tar
go-tangerine-88686cbed27ad2e7d5c111051e06c270b1b352a3.tar.gz
go-tangerine-88686cbed27ad2e7d5c111051e06c270b1b352a3.tar.bz2
go-tangerine-88686cbed27ad2e7d5c111051e06c270b1b352a3.tar.lz
go-tangerine-88686cbed27ad2e7d5c111051e06c270b1b352a3.tar.xz
go-tangerine-88686cbed27ad2e7d5c111051e06c270b1b352a3.tar.zst
go-tangerine-88686cbed27ad2e7d5c111051e06c270b1b352a3.zip
listen to pre instead of post
Diffstat (limited to 'ethminer')
-rw-r--r--ethminer/miner.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ethminer/miner.go b/ethminer/miner.go
index f1d0caae9..bc29b2588 100644
--- a/ethminer/miner.go
+++ b/ethminer/miner.go
@@ -26,7 +26,7 @@ func NewDefaultMiner(coinbase []byte, ethereum ethchain.EthManager) Miner {
quitChan := make(chan ethutil.React, 1) // This is the channel that can exit the miner thread
ethereum.Reactor().Subscribe("newBlock", reactChan)
- ethereum.Reactor().Subscribe("newTx:post", reactChan)
+ ethereum.Reactor().Subscribe("newTx:pre", reactChan)
// We need the quit chan to be a Reactor event.
// The POW search method is actually blocking and if we don't
@@ -34,7 +34,7 @@ func NewDefaultMiner(coinbase []byte, ethereum ethchain.EthManager) Miner {
// The miner overseer will never get the reactor events themselves
// Only after the miner will find the sha
ethereum.Reactor().Subscribe("newBlock", quitChan)
- ethereum.Reactor().Subscribe("newTx:post", quitChan)
+ ethereum.Reactor().Subscribe("newTx:pre", quitChan)
miner := Miner{
pow: &ethchain.EasyPow{},