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@byzantine-lab.io>2019-06-12 17:27:18 +0800
commit43846e6cfaa477d406277895275bf3c722e1bdec (patch)
treed2cd1f22e3eea148a135db74d1e4bf7d0a3d11c4 /dex
parente9532ec6357747676433acfd5f6240dada406f87 (diff)
downloadgo-tangerine-43846e6cfaa477d406277895275bf3c722e1bdec.tar.gz
go-tangerine-43846e6cfaa477d406277895275bf3c722e1bdec.tar.zst
go-tangerine-43846e6cfaa477d406277895275bf3c722e1bdec.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 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: