From 43846e6cfaa477d406277895275bf3c722e1bdec Mon Sep 17 00:00:00 2001 From: Jimmy Hu Date: Wed, 21 Nov 2018 10:26:36 +0800 Subject: 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 --- dex/handler.go | 1 + 1 file changed, 1 insertion(+) (limited to 'dex') 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: -- cgit v1.2.3