Skip to content

Commit

Permalink
fix unconfirmed activity bug (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
panleone authored Nov 23, 2024
1 parent 68e82a7 commit 7bfb6ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
});
}
Expand Down

0 comments on commit 7bfb6ce

Please sign in to comment.