aboutsummaryrefslogtreecommitdiffstats
path: root/dex
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-11-21 10:26:36 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-19 20:54:27 +0800
commit2cf60ac04074e08bf5f33d72c763e988ea4db82c (patch)
tree63572759a0ce1a7218b9484514d89a7d32d80bb5 /dex
parent527f41661d7fdfa23abe1402847cc8c7da6e8e12 (diff)
downloaddexon-2cf60ac04074e08bf5f33d72c763e988ea4db82c.tar
dexon-2cf60ac04074e08bf5f33d72c763e988ea4db82c.tar.gz
dexon-2cf60ac04074e08bf5f33d72c763e988ea4db82c.tar.bz2
dexon-2cf60ac04074e08bf5f33d72c763e988ea4db82c.tar.lz
dexon-2cf60ac04074e08bf5f33d72c763e988ea4db82c.tar.xz
dexon-2cf60ac04074e08bf5f33d72c763e988ea4db82c.tar.zst
dexon-2cf60ac04074e08bf5f33d72c763e988ea4db82c.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.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/dex/handler.go b/dex/handler.go
index 8ab206d33..6b2e3271b 100644
--- a/dex/handler.go
+++ b/dex/handler.go
@@ -729,6 +729,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: