Clear cpfp dirty status

This commit is contained in:
Mononaut 2024-03-31 08:06:01 +00:00
parent 92b9c8f370
commit ac8fdd6405
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E

View File

@ -334,6 +334,11 @@ class MempoolBlocks {
}
private processBlockTemplates(mempool: { [txid: string]: MempoolTransactionExtended }, blocks: string[][], blockWeights: number[] | null, rates: [string, number][], clusters: string[][], candidates: GbtCandidates | undefined, accelerations, accelerationPool, saveResults): MempoolBlockWithTransactions[] {
for (const txid of Object.keys(candidates?.txs ?? mempool)) {
if (txid in mempool) {
mempool[txid].cpfpDirty = false;
}
}
for (const [txid, rate] of rates) {
if (txid in mempool) {
mempool[txid].cpfpDirty = (rate !== mempool[txid].effectiveFeePerVsize);