Merge pull request #4841 from mempool/mononaut/fix-always-dirty
Clear cpfp dirty status
This commit is contained in:
commit
1c862d57ea
@ -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[] {
|
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) {
|
for (const [txid, rate] of rates) {
|
||||||
if (txid in mempool) {
|
if (txid in mempool) {
|
||||||
mempool[txid].cpfpDirty = (rate !== mempool[txid].effectiveFeePerVsize);
|
mempool[txid].cpfpDirty = (rate !== mempool[txid].effectiveFeePerVsize);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user