Skip to content

Commit

Permalink
[BUG][GUI] Cache unconfirmed_balance only for transparent outs
Browse files Browse the repository at this point in the history
shield balance is already cached in unconfirmed_shielded_balance, which
is then added to unconfirmed_balance to get the total.

Github-Pull: #2102
Rebased-From: 149524f
  • Loading branch information
random-zebra authored and Fuzzbawls committed Dec 27, 2020
1 parent d95f0ca commit a6b3f77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/interface/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace interfaces {
WalletBalances Wallet::getBalances() {
WalletBalances result;
result.balance = m_wallet.GetAvailableBalance();
result.unconfirmed_balance = m_wallet.GetUnconfirmedBalance();
result.unconfirmed_balance = m_wallet.GetUnconfirmedBalance(ISMINE_SPENDABLE_TRANSPARENT);
result.immature_balance = m_wallet.GetImmatureBalance();
result.have_watch_only = m_wallet.HaveWatchOnly();
if (result.have_watch_only) {
Expand All @@ -26,4 +26,4 @@ namespace interfaces {
return result;
}

} // namespace interfaces
} // namespace interfaces

0 comments on commit a6b3f77

Please sign in to comment.