mirror of
https://github.com/mempool/mempool.git
synced 2025-02-24 14:50:52 +01:00
Fix stale cpfp bug
This commit is contained in:
parent
46c4d57367
commit
c37858fa54
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue