diff options
author | Jeffrey Wilcke <obscuren@users.noreply.github.com> | 2014-10-30 04:10:04 +0800 |
---|---|---|
committer | Jeffrey Wilcke <obscuren@users.noreply.github.com> | 2014-10-30 04:10:04 +0800 |
commit | fa890c8c0140dac1e02038a6134db0d83bb85af9 (patch) | |
tree | 806fb16adbbec3bcd3ff93b8dfbdcdb73290fabb /ethchain/transaction_pool.go | |
parent | ce2ec1980bbc97fb9b2acc27c6249be1249fa44c (diff) | |
parent | 6b3f5fb82b0304f477a1c36b68b0d07232405aff (diff) | |
download | dexon-fa890c8c0140dac1e02038a6134db0d83bb85af9.tar dexon-fa890c8c0140dac1e02038a6134db0d83bb85af9.tar.gz dexon-fa890c8c0140dac1e02038a6134db0d83bb85af9.tar.bz2 dexon-fa890c8c0140dac1e02038a6134db0d83bb85af9.tar.lz dexon-fa890c8c0140dac1e02038a6134db0d83bb85af9.tar.xz dexon-fa890c8c0140dac1e02038a6134db0d83bb85af9.tar.zst dexon-fa890c8c0140dac1e02038a6134db0d83bb85af9.zip |
Merge pull request #167 from fjl/feature/split-tx-event
Split TxEvent type for tx pre/post
Diffstat (limited to 'ethchain/transaction_pool.go')
-rw-r--r-- | ethchain/transaction_pool.go | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/ethchain/transaction_pool.go b/ethchain/transaction_pool.go index 7f8a5de42..7bd3e9ffd 100644 --- a/ethchain/transaction_pool.go +++ b/ethchain/transaction_pool.go @@ -14,17 +14,12 @@ import ( var txplogger = ethlog.NewLogger("TXP") -const ( - txPoolQueueSize = 50 -) +const txPoolQueueSize = 50 type TxPoolHook chan *Transaction type TxMsgTy byte const ( - TxPre = iota - TxPost - minGasPrice = 1000000 ) @@ -169,7 +164,7 @@ out: txplogger.Debugf("(t) %x => %x (%v) %x\n", tx.Sender()[:4], tmp, tx.Value, tx.Hash()) // Notify the subscribers - pool.Ethereum.EventMux().Post(TxEvent{TxPre, tx}) + pool.Ethereum.EventMux().Post(TxPreEvent{tx}) } case <-pool.quit: break out |