multiblock fix stale mempool txs

This commit is contained in:
Mononaut committed 2024-10-17 10:12:52 +00:00
1 parent d815ab1830
commit 17db3d9004
1 file changed
+1 -1
@@ -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);