Skip to content

Commit 149524f

Browse files
committed
[BUG][GUI] Cache unconfirmed_balance only for transparent outs
shield balance is already cached in unconfirmed_shielded_balance, which is then added to unconfirmed_balance to get the total.
1 parent 9d0923f commit 149524f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interface/wallet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace interfaces {
1111
WalletBalances Wallet::getBalances() {
1212
WalletBalances result;
1313
result.balance = m_wallet.GetAvailableBalance();
14-
result.unconfirmed_balance = m_wallet.GetUnconfirmedBalance();
14+
result.unconfirmed_balance = m_wallet.GetUnconfirmedBalance(ISMINE_SPENDABLE_TRANSPARENT);
1515
result.immature_balance = m_wallet.GetImmatureBalance();
1616
result.have_watch_only = m_wallet.HaveWatchOnly();
1717
if (result.have_watch_only) {
@@ -26,4 +26,4 @@ namespace interfaces {
2626
return result;
2727
}
2828

29-
} // namespace interfaces
29+
} // namespace interfaces

0 commit comments

Comments
 (0)