From 7b3d2b983c3f29474376937ce2bdc17a0e8485c0 Mon Sep 17 00:00:00 2001 From: Mononaut Date: Thu, 19 Sep 2024 22:38:06 +0000 Subject: [PATCH] multiblock fix stale mempool txs --- .../src/app/components/eight-mempool/eight-mempool.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/components/eight-mempool/eight-mempool.component.ts b/frontend/src/app/components/eight-mempool/eight-mempool.component.ts index 6d263f9b7..046e13d75 100644 --- a/frontend/src/app/components/eight-mempool/eight-mempool.component.ts +++ b/frontend/src/app/components/eight-mempool/eight-mempool.component.ts @@ -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);