Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 517 Lines • ▼ Show 20 Lines | bool IsFromMe(const isminefilter &filter) const { | ||||
return GetDebit(filter) > Amount::zero(); | return GetDebit(filter) > Amount::zero(); | ||||
} | } | ||||
// True if only scriptSigs are different | // True if only scriptSigs are different | ||||
bool IsEquivalentTo(const CWalletTx &tx) const; | bool IsEquivalentTo(const CWalletTx &tx) const; | ||||
bool InMempool() const; | bool InMempool() const; | ||||
bool IsTrusted() const; | bool IsTrusted() const; | ||||
bool IsTrusted(std::set<TxId> &trusted_parents) const; | |||||
int64_t GetTxTime() const; | int64_t GetTxTime() const; | ||||
// Pass this transaction to node for mempool insertion and relay to peers if | // Pass this transaction to node for mempool insertion and relay to peers if | ||||
// flag set to true | // flag set to true | ||||
bool SubmitMemoryPoolAndRelay(std::string &err_string, bool relay); | bool SubmitMemoryPoolAndRelay(std::string &err_string, bool relay); | ||||
// TODO: Remove "NO_THREAD_SAFETY_ANALYSIS" and replace it with the correct | // TODO: Remove "NO_THREAD_SAFETY_ANALYSIS" and replace it with the correct | ||||
▲ Show 20 Lines • Show All 357 Lines • ▼ Show 20 Lines | public: | ||||
/** Interface for accessing chain state. */ | /** Interface for accessing chain state. */ | ||||
interfaces::Chain &chain() const { | interfaces::Chain &chain() const { | ||||
assert(m_chain); | assert(m_chain); | ||||
return *m_chain; | return *m_chain; | ||||
} | } | ||||
const CWalletTx *GetWalletTx(const TxId &txid) const | const CWalletTx *GetWalletTx(const TxId &txid) const | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | ||||
bool IsTrusted(const CWalletTx &wtx, std::set<TxId> &trusted_parents) const | |||||
EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | |||||
//! check whether we are allowed to upgrade (or already support) to the | //! check whether we are allowed to upgrade (or already support) to the | ||||
//! named feature | //! named feature | ||||
bool CanSupportFeature(enum WalletFeature wf) const override | bool CanSupportFeature(enum WalletFeature wf) const override | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) { | EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) { | ||||
AssertLockHeld(cs_wallet); | AssertLockHeld(cs_wallet); | ||||
return nWalletMaxVersion >= wf; | return nWalletMaxVersion >= wf; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 731 Lines • Show Last 20 Lines |