Limit GBT: fix on-demand CPFP calculation

This commit is contained in:
Mononaut
2024-01-08 00:56:48 +00:00
parent 07c76d084e
commit 8f2e1de578
3 changed files with 13 additions and 13 deletions

View File

@@ -420,16 +420,6 @@ class MempoolBlocks {
block: blockIndex,
vsize: totalVsize + (mempoolTx.vsize / 2),
};
if (!mempoolTx.cpfpChecked) {
if (mempoolTx.ancestors?.length) {
mempoolTx.ancestors = [];
}
if (mempoolTx.descendants?.length) {
mempoolTx.descendants = [];
}
mempoolTx.bestDescendant = null;
mempoolTx.cpfpChecked = true;
}
const acceleration = accelerations[txid];
if (isAccelerated[txid] || (acceleration && (!accelerationPool || acceleration.pools.includes(accelerationPool)))) {