Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 598 Lines • ▼ Show 20 Lines | public: | ||||
bool InMempool() const; | bool InMempool() const; | ||||
bool IsTrusted(interfaces::Chain::Lock &locked_chain) const; | bool IsTrusted(interfaces::Chain::Lock &locked_chain) 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, | ||||
interfaces::Chain::Lock &locked_chain); | |||||
// 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 | // annotation "EXCLUSIVE_LOCKS_REQUIRED(pwallet->cs_wallet)". The annotation | ||||
// "NO_THREAD_SAFETY_ANALYSIS" was temporarily added to avoid having to | // "NO_THREAD_SAFETY_ANALYSIS" was temporarily added to avoid having to | ||||
// resolve the issue of member access into incomplete type CWallet. Note | // resolve the issue of member access into incomplete type CWallet. Note | ||||
// that we still have the runtime check "AssertLockHeld(pwallet->cs_wallet)" | // that we still have the runtime check "AssertLockHeld(pwallet->cs_wallet)" | ||||
// in place. | // in place. | ||||
std::set<TxId> GetConflicts() const NO_THREAD_SAFETY_ANALYSIS; | std::set<TxId> GetConflicts() const NO_THREAD_SAFETY_ANALYSIS; | ||||
▲ Show 20 Lines • Show All 1,068 Lines • Show Last 20 Lines |