diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-11-21 10:26:36 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 13:49:57 +0800 |
commit | 135e80bc8c1292785392aedffb98dd769f38edb1 (patch) | |
tree | b8712fdee5e733eead0aed48d248f79c6abe5f97 /dex | |
parent | 176ee2e3f5e61a320e7d5670dd77433f053509ec (diff) | |
download | dexon-135e80bc8c1292785392aedffb98dd769f38edb1.tar dexon-135e80bc8c1292785392aedffb98dd769f38edb1.tar.gz dexon-135e80bc8c1292785392aedffb98dd769f38edb1.tar.bz2 dexon-135e80bc8c1292785392aedffb98dd769f38edb1.tar.lz dexon-135e80bc8c1292785392aedffb98dd769f38edb1.tar.xz dexon-135e80bc8c1292785392aedffb98dd769f38edb1.tar.zst dexon-135e80bc8c1292785392aedffb98dd769f38edb1.zip |
core, dex: Batch process touchSender. Lower priority for tx. (#41)
* dex: Add a tx queue in broadcast
* Modify queue parameter
* Priority select all messages except tx
* Batch process TouchSenders
Diffstat (limited to 'dex')
-rw-r--r-- | dex/handler.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dex/handler.go b/dex/handler.go index 3c8d25ea3..a74c78e3b 100644 --- a/dex/handler.go +++ b/dex/handler.go @@ -724,6 +724,7 @@ func (pm *ProtocolManager) handleMsg(p *peer) error { } p.MarkTransaction(tx.Hash()) } + types.Transactions(txs).TouchSenders(types.MakeSigner(pm.blockchain.Config(), new(big.Int))) pm.txpool.AddRemotes(txs) case msg.Code == MetaMsg: |