Merge pull request #5274 from mempool/mononaut/stale-cpfp

Fix stale cpfp bug
This commit is contained in:
softsimon 2024-07-04 18:45:53 +09:00 committed by GitHub
commit 2b96c99fb3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -353,6 +353,9 @@ class MempoolBlocks {
for (const txid of Object.keys(candidates?.txs ?? mempool)) { for (const txid of Object.keys(candidates?.txs ?? mempool)) {
if (txid in mempool) { if (txid in mempool) {
mempool[txid].cpfpDirty = false; mempool[txid].cpfpDirty = false;
mempool[txid].ancestors = [];
mempool[txid].descendants = [];
mempool[txid].bestDescendant = null;
} }
} }
for (const [txid, rate] of rates) { for (const [txid, rate] of rates) {