aboutsummaryrefslogtreecommitdiffstats
path: root/core/tx_pool.go
diff options
context:
space:
mode:
authorBJ4 <bojie@dexon.org>2018-11-15 16:02:19 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:53 +0800
commit24e161879e478a589c8857a1b2fec66fa948d225 (patch)
treeaf407d2615b41ff4703cfa91f86708f6aced2ae7 /core/tx_pool.go
parentb26e4c9adaa2952a63bf811f991a3e6fb9fc5646 (diff)
downloaddexon-24e161879e478a589c8857a1b2fec66fa948d225.tar
dexon-24e161879e478a589c8857a1b2fec66fa948d225.tar.gz
dexon-24e161879e478a589c8857a1b2fec66fa948d225.tar.bz2
dexon-24e161879e478a589c8857a1b2fec66fa948d225.tar.lz
dexon-24e161879e478a589c8857a1b2fec66fa948d225.tar.xz
dexon-24e161879e478a589c8857a1b2fec66fa948d225.tar.zst
dexon-24e161879e478a589c8857a1b2fec66fa948d225.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.go2
1 files changed, 2 insertions, 0 deletions
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