Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 485 Lines • ▼ Show 20 Lines | void MarkDirty() { | ||||
m_amounts[DEBIT].Reset(); | m_amounts[DEBIT].Reset(); | ||||
m_amounts[CREDIT].Reset(); | m_amounts[CREDIT].Reset(); | ||||
m_amounts[IMMATURE_CREDIT].Reset(); | m_amounts[IMMATURE_CREDIT].Reset(); | ||||
m_amounts[AVAILABLE_CREDIT].Reset(); | m_amounts[AVAILABLE_CREDIT].Reset(); | ||||
fChangeCached = false; | fChangeCached = false; | ||||
m_is_cache_empty = true; | m_is_cache_empty = true; | ||||
} | } | ||||
void BindWallet(CWallet *pwalletIn) { | |||||
pwallet = pwalletIn; | |||||
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; | ||||
// TODO: Remove "NO_THREAD_SAFETY_ANALYSIS" and replace it with the correct | // TODO: Remove "NO_THREAD_SAFETY_ANALYSIS" and replace it with the correct | ||||
// annotation "EXCLUSIVE_LOCKS_REQUIRED(pwallet->cs_wallet)". The | // annotation "EXCLUSIVE_LOCKS_REQUIRED(pwallet->cs_wallet)". The | ||||
// annotation "NO_THREAD_SAFETY_ANALYSIS" was temporarily added to avoid | // annotation "NO_THREAD_SAFETY_ANALYSIS" was temporarily added to avoid | ||||
// having to resolve the issue of member access into incomplete type | // having to resolve the issue of member access into incomplete type | ||||
▲ Show 20 Lines • Show All 1,111 Lines • Show Last 20 Lines |