Detect RBF by mined transactions

This commit is contained in:
Mononaut
2023-05-18 09:51:41 -04:00
parent 64d6bda728
commit 369db7a63c
4 changed files with 59 additions and 1 deletions

View File

@@ -31,7 +31,7 @@ class RbfCache {
}
public add(replaced: TransactionExtended[], newTxExtended: TransactionExtended): void {
if (!newTxExtended || !replaced?.length) {
if (!newTxExtended || !replaced?.length || this.txs.has(newTxExtended.txid)) {
return;
}