Skip to content

Commit d1f30ff

Browse files
committed
Wallet: return unconfirmed balance for all spendable coins by default
(including delegated). This way, delegations are reflected under "Pending balance" in the GUI (owner-side), before being included in a block.
1 parent dc7eb08 commit d1f30ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/wallet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ class CWallet : public CCryptoKeyStore, public CValidationInterface
606606
CAmount GetDelegatedBalance() const; // delegated coins for which we have the spending key
607607
CAmount GetImmatureDelegatedBalance() const;
608608
CAmount GetLockedCoins() const;
609-
CAmount GetUnconfirmedBalance(isminetype filter = ISMINE_SPENDABLE) const;
609+
CAmount GetUnconfirmedBalance(isminetype filter = ISMINE_SPENDABLE_ALL) const;
610610
CAmount GetImmatureBalance() const;
611611
CAmount GetWatchOnlyBalance() const;
612612
CAmount GetUnconfirmedWatchOnlyBalance() const;

0 commit comments

Comments
 (0)