Merge pull request #3839 from mempool/mononaut/clean-up-legacy-cpfp

Clean up legacy CPFP calculations
This commit is contained in:
softsimon authored and GitHub committed 2023-06-14 23:14:07 +02:00
commit 58ae072d5f
2 files changed
+3 -8

No files matched your search

-8
View File
@@ -127,14 +127,6 @@ class Blocks {
}
}
if (addMempoolData) {
transactions.forEach((tx) => {
if (!tx.cpfpChecked) {
Common.setRelativesAndGetCpfpInfo(tx as MempoolTransactionExtended, mempool); // Child Pay For Parent
}
});
}
if (!quiet) {
logger.debug(`${transactionsFound} of ${txIds.length} found in mempool. ${transactionsFetched} fetched through backend service.`);
}
+3
View File
@@ -358,6 +358,9 @@ class MempoolBlocks {
block: blockIndex,
vsize: totalVsize + (mempoolTx.vsize / 2),
};
mempoolTx.ancestors = [];
mempoolTx.descendants = [];
mempoolTx.bestDescendant = null;
mempoolTx.cpfpChecked = true;
// online calculation of stack-of-blocks fee stats