aboutsummaryrefslogtreecommitdiffstats
path: root/dex/handler.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-11-21 10:26:36 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:53 +0800
commit9ff5a4e83badfa43c78636f06917c1a8f0a25d9f (patch)
treefb76af2716da0b597e0f6c2421daab5145414c30 /dex/handler.go
parent404496ca9ac1974fff5c4e89f4fee146da7bac33 (diff)
downloaddexon-9ff5a4e83badfa43c78636f06917c1a8f0a25d9f.tar.gz
dexon-9ff5a4e83badfa43c78636f06917c1a8f0a25d9f.tar.zst
dexon-9ff5a4e83badfa43c78636f06917c1a8f0a25d9f.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/handler.go')
-rw-r--r--dex/handler.go1
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: