From b9c3451661aadceb7ca8e8651ed3ea6925ad4314 Mon Sep 17 00:00:00 2001 From: BJ4 Date: Thu, 15 Nov 2018 16:02:19 +0800 Subject: app: add cache to reuse same tx address which has already recovered (#26) --- core/tx_pool.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/tx_pool.go') diff --git a/core/tx_pool.go b/core/tx_pool.go index 7f5be1832..cfec195c8 100644 --- a/core/tx_pool.go +++ b/core/tx_pool.go @@ -945,6 +945,8 @@ func (pool *TxPool) removeTx(hash common.Hash, outofbound bool) { delete(pool.queue, addr) } } + + types.DeleteTxCacheByHash(hash) } // promoteExecutables moves transactions that have become processable from the -- cgit v1.2.3