aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/transaction_pool.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <obscuren@users.noreply.github.com>2014-10-17 23:10:34 +0800
committerJeffrey Wilcke <obscuren@users.noreply.github.com>2014-10-17 23:10:34 +0800
commitdf2b70853ff0764c4fcb181547eee3a66f7bda4a (patch)
treea70bf06660283bcc83f6a499cf9fed808d347a06 /ethchain/transaction_pool.go
parent3b709852846317d3456f55f906afc327ba76d6df (diff)
parentfa84e50ddb8e64d4cb92d58e235cfed13761f21e (diff)
downloaddexon-df2b70853ff0764c4fcb181547eee3a66f7bda4a.tar
dexon-df2b70853ff0764c4fcb181547eee3a66f7bda4a.tar.gz
dexon-df2b70853ff0764c4fcb181547eee3a66f7bda4a.tar.bz2
dexon-df2b70853ff0764c4fcb181547eee3a66f7bda4a.tar.lz
dexon-df2b70853ff0764c4fcb181547eee3a66f7bda4a.tar.xz
dexon-df2b70853ff0764c4fcb181547eee3a66f7bda4a.tar.zst
dexon-df2b70853ff0764c4fcb181547eee3a66f7bda4a.zip
Merge pull request #58 from fjl/feature/event
Blocking event package
Diffstat (limited to 'ethchain/transaction_pool.go')
-rw-r--r--ethchain/transaction_pool.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/ethchain/transaction_pool.go b/ethchain/transaction_pool.go
index da6c3d6ba..0676af3a3 100644
--- a/ethchain/transaction_pool.go
+++ b/ethchain/transaction_pool.go
@@ -24,6 +24,7 @@ type TxMsgTy byte
const (
TxPre = iota
TxPost
+
minGasPrice = 1000000
)
@@ -160,7 +161,7 @@ out:
txplogger.Debugf("(t) %x => %x (%v) %x\n", tx.Sender()[:4], tmp, tx.Value, tx.Hash())
// Notify the subscribers
- pool.Ethereum.Reactor().Post("newTx:pre", tx)
+ pool.Ethereum.EventMux().Post(TxEvent{TxPre, tx})
}
case <-pool.quit:
break out