multiblock fix stale mempool txs

This commit is contained in:
Mononaut 2024-09-19 22:38:06 +00:00
parent beb128b5e0
commit 7b3d2b983c
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E

View File

@ -123,7 +123,7 @@ export class EightMempoolComponent implements OnInit, OnDestroy {
for (const tx of transactionsStripped) {
inNewBlock[tx.txid] = true;
}
for (const txid of Object.keys(this.blockGraph?.scenes[update.block]?.txs || {})) {
for (const txid of Object.keys(this.blockGraph?.scenes[this.numBlocks - update.block - 1]?.txs || {})) {
inOldBlock[txid] = true;
if (!inNewBlock[txid]) {
removed.push(txid);