|
|
|
@ -2026,11 +2026,6 @@ CAmount CWalletTx::GetImmatureWatchOnlyCredit(const bool fUseCache) const
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CAmount CWalletTx::GetAvailableWatchOnlyCredit(const bool fUseCache) const
|
|
|
|
|
{
|
|
|
|
|
return GetAvailableCredit(fUseCache, ISMINE_WATCH_ONLY);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CAmount CWalletTx::GetChange() const
|
|
|
|
|
{
|
|
|
|
|
if (fChangeCached)
|
|
|
|
@ -2199,7 +2194,7 @@ CAmount CWallet::GetUnconfirmedWatchOnlyBalance() const
|
|
|
|
|
{
|
|
|
|
|
const CWalletTx* pcoin = &entry.second;
|
|
|
|
|
if (!pcoin->IsTrusted() && pcoin->GetDepthInMainChain() == 0 && pcoin->InMempool())
|
|
|
|
|
nTotal += pcoin->GetAvailableWatchOnlyCredit();
|
|
|
|
|
nTotal += pcoin->GetAvailableCredit(true, ISMINE_WATCH_ONLY);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return nTotal;
|
|
|
|
|