Changeset View
Changeset View
Standalone View
Standalone View
src/txorphanage.h
Show All 25 Lines | |||||
int EraseOrphanTx(const TxId &txid) EXCLUSIVE_LOCKS_REQUIRED(g_cs_orphans); | int EraseOrphanTx(const TxId &txid) EXCLUSIVE_LOCKS_REQUIRED(g_cs_orphans); | ||||
void EraseOrphansFor(NodeId peer) EXCLUSIVE_LOCKS_REQUIRED(g_cs_orphans); | void EraseOrphansFor(NodeId peer) EXCLUSIVE_LOCKS_REQUIRED(g_cs_orphans); | ||||
unsigned int LimitOrphanTxSize(unsigned int nMaxOrphans) | unsigned int LimitOrphanTxSize(unsigned int nMaxOrphans) | ||||
EXCLUSIVE_LOCKS_REQUIRED(g_cs_orphans); | EXCLUSIVE_LOCKS_REQUIRED(g_cs_orphans); | ||||
void AddChildrenToWorkSet(const CTransaction &tx, | void AddChildrenToWorkSet(const CTransaction &tx, | ||||
std::set<TxId> &orphan_work_set) | std::set<TxId> &orphan_work_set) | ||||
EXCLUSIVE_LOCKS_REQUIRED(g_cs_orphans); | EXCLUSIVE_LOCKS_REQUIRED(g_cs_orphans); | ||||
bool HaveOrphanTx(const TxId &txid) LOCKS_EXCLUDED(g_cs_orphans); | bool HaveOrphanTx(const TxId &txid) LOCKS_EXCLUDED(g_cs_orphans); | ||||
std::pair<CTransactionRef, NodeId> GetOrphanTx(const TxId &txid) | |||||
EXCLUSIVE_LOCKS_REQUIRED(g_cs_orphans); | |||||
/** | /** | ||||
* Map from txid to orphan transaction record. Limited by | * Map from txid to orphan transaction record. Limited by | ||||
* -maxorphantx/DEFAULT_MAX_ORPHAN_TRANSACTIONS | * -maxorphantx/DEFAULT_MAX_ORPHAN_TRANSACTIONS | ||||
*/ | */ | ||||
extern std::map<TxId, COrphanTx> mapOrphanTransactions GUARDED_BY(g_cs_orphans); | extern std::map<TxId, COrphanTx> mapOrphanTransactions GUARDED_BY(g_cs_orphans); | ||||
struct IteratorComparator { | struct IteratorComparator { | ||||
Show All 18 Lines |