[wallet] Factor out GetWatchOnlyBalance()
Zcash: removes GetWatchOnlyBalance (unused) (cherry picked from commit ef7bc8893c7a953953aa457736d79c28a4f45792)
This commit is contained in:
parent
f7c57ecca4
commit
5fc98a3b34
|
@ -3201,22 +3201,6 @@ CAmount CWallet::GetImmatureBalance() const
|
|||
return nTotal;
|
||||
}
|
||||
|
||||
CAmount CWallet::GetWatchOnlyBalance() const
|
||||
{
|
||||
CAmount nTotal = 0;
|
||||
{
|
||||
LOCK2(cs_main, cs_wallet);
|
||||
for (const auto& entry : mapWallet)
|
||||
{
|
||||
const CWalletTx* pcoin = &entry.second;
|
||||
if (pcoin->IsTrusted())
|
||||
nTotal += pcoin->GetAvailableWatchOnlyCredit();
|
||||
}
|
||||
}
|
||||
|
||||
return nTotal;
|
||||
}
|
||||
|
||||
CAmount CWallet::GetUnconfirmedWatchOnlyBalance() const
|
||||
{
|
||||
CAmount nTotal = 0;
|
||||
|
|
|
@ -1181,7 +1181,6 @@ public:
|
|||
CAmount GetBalance(const isminefilter& filter=ISMINE_SPENDABLE) const;
|
||||
CAmount GetUnconfirmedBalance() const;
|
||||
CAmount GetImmatureBalance() const;
|
||||
CAmount GetWatchOnlyBalance() const;
|
||||
CAmount GetUnconfirmedWatchOnlyBalance() const;
|
||||
CAmount GetImmatureWatchOnlyBalance() const;
|
||||
CAmount GetLegacyBalance(const isminefilter& filter, int minDepth, const std::string* account) const;
|
||||
|
|
Loading…
Reference in New Issue