Fix disappearing effective/accelerated fee rates

This commit is contained in:
Mononaut 2024-04-06 03:22:56 +00:00
parent ba6fedc430
commit 0bc86541c6
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E
2 changed files with 2 additions and 2 deletions

View File

@ -343,7 +343,7 @@ class MempoolBlocks {
if (txid in mempool) { if (txid in mempool) {
mempool[txid].cpfpDirty = (rate !== mempool[txid].effectiveFeePerVsize); mempool[txid].cpfpDirty = (rate !== mempool[txid].effectiveFeePerVsize);
mempool[txid].effectiveFeePerVsize = rate; mempool[txid].effectiveFeePerVsize = rate;
mempool[txid].cpfpChecked = false; mempool[txid].cpfpChecked = true;
} }
} }

View File

@ -739,7 +739,7 @@ class WebsocketHandler {
accelerated: mempoolTx.acceleration || undefined, accelerated: mempoolTx.acceleration || undefined,
} }
}; };
if (!mempoolTx.cpfpChecked) { if (!mempoolTx.cpfpChecked && !mempoolTx.acceleration) {
calculateCpfp(mempoolTx, newMempool); calculateCpfp(mempoolTx, newMempool);
} }
if (mempoolTx.cpfpDirty) { if (mempoolTx.cpfpDirty) {