Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 281 Lines • ▼ Show 20 Lines | public: | ||||
mutable bool fWatchDebitCached; | mutable bool fWatchDebitCached; | ||||
mutable bool fWatchCreditCached; | mutable bool fWatchCreditCached; | ||||
mutable bool fImmatureWatchCreditCached; | mutable bool fImmatureWatchCreditCached; | ||||
mutable bool fAvailableWatchCreditCached; | mutable bool fAvailableWatchCreditCached; | ||||
mutable bool fChangeCached; | mutable bool fChangeCached; | ||||
mutable Amount nDebitCached; | mutable Amount nDebitCached; | ||||
mutable Amount nCreditCached; | mutable Amount nCreditCached; | ||||
mutable Amount nImmatureCreditCached; | mutable Amount nImmatureCreditCached; | ||||
mutable CAmount nAvailableCreditCached; | mutable Amount nAvailableCreditCached; | ||||
mutable CAmount nWatchDebitCached; | mutable Amount nWatchDebitCached; | ||||
mutable CAmount nWatchCreditCached; | mutable Amount nWatchCreditCached; | ||||
mutable CAmount nImmatureWatchCreditCached; | mutable Amount nImmatureWatchCreditCached; | ||||
mutable CAmount nAvailableWatchCreditCached; | mutable Amount nAvailableWatchCreditCached; | ||||
mutable Amount nChangeCached; | mutable Amount nChangeCached; | ||||
CWalletTx() { Init(nullptr); } | CWalletTx() { Init(nullptr); } | ||||
CWalletTx(const CWallet *pwalletIn, CTransactionRef arg) | CWalletTx(const CWallet *pwalletIn, CTransactionRef arg) | ||||
: CMerkleTx(std::move(arg)) { | : CMerkleTx(std::move(arg)) { | ||||
Init(pwalletIn); | Init(pwalletIn); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | void BindWallet(CWallet *pwalletIn) { | ||||
pwallet = pwalletIn; | pwallet = pwalletIn; | ||||
MarkDirty(); | MarkDirty(); | ||||
} | } | ||||
//! filter decides which addresses will count towards the debit | //! filter decides which addresses will count towards the debit | ||||
Amount GetDebit(const isminefilter &filter) const; | Amount GetDebit(const isminefilter &filter) const; | ||||
Amount GetCredit(const isminefilter &filter) const; | Amount GetCredit(const isminefilter &filter) const; | ||||
Amount GetImmatureCredit(bool fUseCache = true) const; | Amount GetImmatureCredit(bool fUseCache = true) const; | ||||
CAmount GetAvailableCredit(bool fUseCache = true) const; | Amount GetAvailableCredit(bool fUseCache = true) const; | ||||
CAmount GetImmatureWatchOnlyCredit(const bool &fUseCache = true) const; | Amount GetImmatureWatchOnlyCredit(const bool &fUseCache = true) const; | ||||
CAmount GetAvailableWatchOnlyCredit(const bool &fUseCache = true) const; | Amount GetAvailableWatchOnlyCredit(const bool &fUseCache = true) const; | ||||
Amount GetChange() const; | Amount GetChange() const; | ||||
void GetAmounts(std::list<COutputEntry> &listReceived, | void GetAmounts(std::list<COutputEntry> &listReceived, | ||||
std::list<COutputEntry> &listSent, CAmount &nFee, | std::list<COutputEntry> &listSent, Amount &nFee, | ||||
std::string &strSentAccount, | std::string &strSentAccount, | ||||
const isminefilter &filter) const; | const isminefilter &filter) const; | ||||
void GetAccountAmounts(const std::string &strAccount, CAmount &nReceived, | void GetAccountAmounts(const std::string &strAccount, Amount &nReceived, | ||||
CAmount &nSent, CAmount &nFee, | Amount &nSent, Amount &nFee, | ||||
const isminefilter &filter) const; | const isminefilter &filter) const; | ||||
bool IsFromMe(const isminefilter &filter) const { | bool IsFromMe(const isminefilter &filter) const { | ||||
return (GetDebit(filter) > 0); | return (GetDebit(filter) > 0); | ||||
} | } | ||||
// True if only scriptSigs are different | // True if only scriptSigs are different | ||||
bool IsEquivalentTo(const CWalletTx &tx) const; | bool IsEquivalentTo(const CWalletTx &tx) const; | ||||
▲ Show 20 Lines • Show All 717 Lines • Show Last 20 Lines |