diff options
author | Felix Lange <fjl@twurst.com> | 2014-10-29 10:50:20 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2014-10-29 10:50:20 +0800 |
commit | 6b3f5fb82b0304f477a1c36b68b0d07232405aff (patch) | |
tree | a0d52b610b2876fcbcce8bb00e84ba81799d568d /ethchain/transaction_pool.go | |
parent | 5920aa7be6fb973c7cbae34c9d4af03665933c51 (diff) | |
download | dexon-6b3f5fb82b0304f477a1c36b68b0d07232405aff.tar.gz dexon-6b3f5fb82b0304f477a1c36b68b0d07232405aff.tar.zst dexon-6b3f5fb82b0304f477a1c36b68b0d07232405aff.zip |
cmd/mist, ethchain, ethminer: split TxEvent (#165)
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 |