diff options
author | BJ4 <bojie@dexon.org> | 2018-11-15 16:02:19 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2018-12-19 20:54:27 +0800 |
commit | b9c3451661aadceb7ca8e8651ed3ea6925ad4314 (patch) | |
tree | 7f6f557635831a4135be8fd9b0c6b16d94d01e7b /core/tx_pool.go | |
parent | adb04994560c2558fc93c85ea5976b3744ca6b6b (diff) | |
download | dexon-b9c3451661aadceb7ca8e8651ed3ea6925ad4314.tar dexon-b9c3451661aadceb7ca8e8651ed3ea6925ad4314.tar.gz dexon-b9c3451661aadceb7ca8e8651ed3ea6925ad4314.tar.bz2 dexon-b9c3451661aadceb7ca8e8651ed3ea6925ad4314.tar.lz dexon-b9c3451661aadceb7ca8e8651ed3ea6925ad4314.tar.xz dexon-b9c3451661aadceb7ca8e8651ed3ea6925ad4314.tar.zst dexon-b9c3451661aadceb7ca8e8651ed3ea6925ad4314.zip |
app: add cache to reuse same tx address which has already recovered (#26)
Diffstat (limited to 'core/tx_pool.go')
-rw-r--r-- | core/tx_pool.go | 2 |
1 files changed, 2 insertions, 0 deletions
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 |