Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 278 Lines • ▼ Show 20 Lines | public: | ||||
mutable bool fCreditCached; | mutable bool fCreditCached; | ||||
mutable bool fImmatureCreditCached; | mutable bool fImmatureCreditCached; | ||||
mutable bool fAvailableCreditCached; | mutable bool fAvailableCreditCached; | ||||
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 CAmount nDebitCached; | mutable Amount nDebitCached; | ||||
mutable Amount nCreditCached; | mutable Amount nCreditCached; | ||||
mutable CAmount nImmatureCreditCached; | mutable CAmount nImmatureCreditCached; | ||||
mutable CAmount nAvailableCreditCached; | mutable CAmount nAvailableCreditCached; | ||||
mutable CAmount nWatchDebitCached; | mutable CAmount nWatchDebitCached; | ||||
mutable CAmount nWatchCreditCached; | mutable CAmount nWatchCreditCached; | ||||
mutable CAmount nImmatureWatchCreditCached; | mutable CAmount nImmatureWatchCreditCached; | ||||
mutable CAmount nAvailableWatchCreditCached; | mutable CAmount nAvailableWatchCreditCached; | ||||
mutable Amount nChangeCached; | mutable Amount nChangeCached; | ||||
▲ Show 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | public: | ||||
} | } | ||||
void BindWallet(CWallet *pwalletIn) { | 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 | ||||
CAmount GetDebit(const isminefilter &filter) const; | Amount GetDebit(const isminefilter &filter) const; | ||||
Amount GetCredit(const isminefilter &filter) const; | Amount GetCredit(const isminefilter &filter) const; | ||||
CAmount GetImmatureCredit(bool fUseCache = true) const; | CAmount GetImmatureCredit(bool fUseCache = true) const; | ||||
CAmount GetAvailableCredit(bool fUseCache = true) const; | CAmount GetAvailableCredit(bool fUseCache = true) const; | ||||
CAmount GetImmatureWatchOnlyCredit(const bool &fUseCache = true) const; | CAmount GetImmatureWatchOnlyCredit(const bool &fUseCache = true) const; | ||||
CAmount GetAvailableWatchOnlyCredit(const bool &fUseCache = true) const; | CAmount GetAvailableWatchOnlyCredit(const bool &fUseCache = true) const; | ||||
Amount GetChange() const; | Amount GetChange() const; | ||||
void GetAmounts(std::list<COutputEntry> &listReceived, | void GetAmounts(std::list<COutputEntry> &listReceived, | ||||
▲ Show 20 Lines • Show All 492 Lines • ▼ Show 20 Lines | public: | ||||
std::set<CTxDestination> | std::set<CTxDestination> | ||||
GetAccountAddresses(const std::string &strAccount) const; | GetAccountAddresses(const std::string &strAccount) const; | ||||
isminetype IsMine(const CTxIn &txin) const; | isminetype IsMine(const CTxIn &txin) const; | ||||
/** | /** | ||||
* Returns amount of debit if the input matches the filter, otherwise | * Returns amount of debit if the input matches the filter, otherwise | ||||
* returns 0 | * returns 0 | ||||
*/ | */ | ||||
CAmount GetDebit(const CTxIn &txin, const isminefilter &filter) const; | Amount GetDebit(const CTxIn &txin, const isminefilter &filter) const; | ||||
isminetype IsMine(const CTxOut &txout) const; | isminetype IsMine(const CTxOut &txout) const; | ||||
Amount GetCredit(const CTxOut &txout, const isminefilter &filter) const; | Amount GetCredit(const CTxOut &txout, const isminefilter &filter) const; | ||||
bool IsChange(const CTxOut &txout) const; | bool IsChange(const CTxOut &txout) const; | ||||
Amount GetChange(const CTxOut &txout) const; | Amount GetChange(const CTxOut &txout) const; | ||||
bool IsMine(const CTransaction &tx) const; | bool IsMine(const CTransaction &tx) const; | ||||
/** should probably be renamed to IsRelevantToMe */ | /** should probably be renamed to IsRelevantToMe */ | ||||
bool IsFromMe(const CTransaction &tx) const; | bool IsFromMe(const CTransaction &tx) const; | ||||
CAmount GetDebit(const CTransaction &tx, const isminefilter &filter) const; | Amount GetDebit(const CTransaction &tx, const isminefilter &filter) const; | ||||
/** Returns whether all of the inputs match the filter */ | /** Returns whether all of the inputs match the filter */ | ||||
bool IsAllFromMe(const CTransaction &tx, const isminefilter &filter) const; | bool IsAllFromMe(const CTransaction &tx, const isminefilter &filter) const; | ||||
Amount GetCredit(const CTransaction &tx, const isminefilter &filter) const; | Amount GetCredit(const CTransaction &tx, const isminefilter &filter) const; | ||||
Amount GetChange(const CTransaction &tx) const; | Amount GetChange(const CTransaction &tx) const; | ||||
void SetBestChain(const CBlockLocator &loc) override; | void SetBestChain(const CBlockLocator &loc) override; | ||||
DBErrors LoadWallet(bool &fFirstRunRet); | DBErrors LoadWallet(bool &fFirstRunRet); | ||||
DBErrors ZapWalletTx(std::vector<CWalletTx> &vWtx); | DBErrors ZapWalletTx(std::vector<CWalletTx> &vWtx); | ||||
▲ Show 20 Lines • Show All 214 Lines • Show Last 20 Lines |