From c37858fa54d254920bba0244b68cd64adb392dfd Mon Sep 17 00:00:00 2001 From: Mononaut Date: Thu, 4 Jul 2024 08:43:05 +0000 Subject: [PATCH] Fix stale cpfp bug --- backend/src/api/mempool-blocks.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/src/api/mempool-blocks.ts b/backend/src/api/mempool-blocks.ts index 3c1c434bd..a144515dc 100644 --- a/backend/src/api/mempool-blocks.ts +++ b/backend/src/api/mempool-blocks.ts @@ -353,6 +353,9 @@ class MempoolBlocks { for (const txid of Object.keys(candidates?.txs ?? mempool)) { if (txid in mempool) { mempool[txid].cpfpDirty = false; + mempool[txid].ancestors = []; + mempool[txid].descendants = []; + mempool[txid].bestDescendant = null; } } for (const [txid, rate] of rates) {