Limit GBT: handle accelerations beneath the purge rate

This commit is contained in:
Mononaut
2024-01-08 00:03:05 +00:00
parent 5411eb491f
commit 07c76d084e
2 changed files with 18 additions and 6 deletions

View File

@@ -457,6 +457,12 @@ class Mempool {
newCandidateTxMap[txid] = true;
}
}
const accelerations = this.getAccelerations();
for (const txid of Object.keys(accelerations)) {
if (this.mempoolCache[txid]) {
newCandidateTxMap[txid] = true;
}
}
const removed: MempoolTransactionExtended[] = [];
const added: MempoolTransactionExtended[] = [];
// don't prematurely remove txs included in a new block