Skip to content

Commit

Permalink
fix wallet rpc poll snapshot based on previous balances
Browse files Browse the repository at this point in the history
  • Loading branch information
woodser committed Apr 13, 2024
1 parent 6c82164 commit f45225a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/ts/wallet/MoneroWalletRpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2459,7 +2459,7 @@ class WalletPoller {
}

// take initial snapshot
if (that.prevHeight === undefined) {
if (that.prevBalances === undefined) {
that.prevHeight = await that.wallet.getHeight();
that.prevLockedTxs = await that.wallet.getTxs(new MoneroTxQuery().setIsLocked(true));
that.prevBalances = await that.wallet.getBalances();
Expand Down

0 comments on commit f45225a

Please sign in to comment.