add missing rbf eviction

This commit is contained in:
Mononaut
2023-05-04 19:10:53 -04:00
parent d322c6b5b5
commit 3d0f7d6855
2 changed files with 4 additions and 1 deletions

View File

@@ -163,7 +163,7 @@ class RbfCache {
}
// flag a transaction as removed from the mempool
public evict(txid, fast: boolean = false): void {
public evict(txid: string, fast: boolean = false): void {
if (this.txs.has(txid) && (fast || !this.expiring.has(txid))) {
this.expiring.set(txid, fast ? Date.now() + (1000 * 60 * 10) : Date.now() + (1000 * 86400)); // 24 hours
}