Changeset View
Changeset View
Standalone View
Standalone View
src/txorphanage.h
Show All 21 Lines | struct COrphanTx { | ||||
int64_t nTimeExpire; | int64_t nTimeExpire; | ||||
size_t list_pos; | size_t list_pos; | ||||
}; | }; | ||||
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, | |||||
std::set<TxId> &orphan_work_set) | |||||
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 |