Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.h
Show First 20 Lines • Show All 790 Lines • ▼ Show 20 Lines | void AddUnbroadcastTx(const TxId &txid) { | ||||
m_unbroadcast_txids.insert(txid); | m_unbroadcast_txids.insert(txid); | ||||
} | } | ||||
} | } | ||||
/** Removes a transaction from the unbroadcast set */ | /** Removes a transaction from the unbroadcast set */ | ||||
void RemoveUnbroadcastTx(const TxId &txid, const bool unchecked = false); | void RemoveUnbroadcastTx(const TxId &txid, const bool unchecked = false); | ||||
/** Returns transactions in unbroadcast set */ | /** Returns transactions in unbroadcast set */ | ||||
const std::set<TxId> GetUnbroadcastTxs() const { | std::set<TxId> GetUnbroadcastTxs() const { | ||||
LOCK(cs); | LOCK(cs); | ||||
return m_unbroadcast_txids; | return m_unbroadcast_txids; | ||||
} | } | ||||
// Returns if a txid is in the unbroadcast set | // Returns if a txid is in the unbroadcast set | ||||
bool IsUnbroadcastTx(const TxId &txid) const { | bool IsUnbroadcastTx(const TxId &txid) const { | ||||
LOCK(cs); | LOCK(cs); | ||||
return (m_unbroadcast_txids.count(txid) != 0); | return (m_unbroadcast_txids.count(txid) != 0); | ||||
▲ Show 20 Lines • Show All 249 Lines • Show Last 20 Lines |