exclude fullrbf txs from audit and label in visualization

This commit is contained in:
Mononaut
2023-06-19 18:14:09 -04:00
parent 408c86963b
commit f1966768a7
11 changed files with 62 additions and 17 deletions

View File

@@ -169,6 +169,19 @@ class RbfCache {
}
}
// is the transaction involved in a full rbf replacement?
public isFullRbf(txid: string): boolean {
const treeId = this.treeMap.get(txid);
if (!treeId) {
return false;
}
const tree = this.rbfTrees.get(treeId);
if (!tree) {
return false;
}
return tree?.fullRbf;
}
private cleanup(): void {
const now = Date.now();
for (const txid of this.expiring.keys()) {