From 24e161879e478a589c8857a1b2fec66fa948d225 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 54bad9eae..fc36d50bf 100644 --- a/core/tx_pool.go +++ b/core/tx_pool.go @@ -965,6 +965,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