From 7bfb6cedbc808890692080f8d17d7f486c6130b8 Mon Sep 17 00:00:00 2001 From: Alessandro Rezzi Date: Sat, 23 Nov 2024 21:32:06 +0100 Subject: [PATCH] fix unconfirmed activity bug (#476) --- scripts/wallet.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/wallet.js b/scripts/wallet.js index 25eec7e09..ff9a6086a 100644 --- a/scripts/wallet.js +++ b/scripts/wallet.js @@ -983,6 +983,9 @@ export class Wallet { await this.#getLatestBlocks(block); // Invalidate the balance cache to keep immature balance updated this.#mempool.invalidateBalanceCache(); + // Emit a new-tx signal to update the Activity. + // Otherwise, unconfirmed txs would not get updated + getEventEmitter().emit('new-tx'); } }); }