Bitcoin Core 28.99.0
P2P Digital Currency
Classes | Variables
txorphanage.h File Reference
#include <net.h>
#include <primitives/block.h>
#include <primitives/transaction.h>
#include <sync.h>
#include <util/time.h>
#include <map>
#include <set>
Include dependency graph for txorphanage.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TxOrphanage
 A class to track orphan transactions (failed on TX_MISSING_INPUTS) Since we cannot distinguish orphans from bad transactions with non-existent inputs, we heavily limit the number of orphans we keep and the duration we keep them for. More...
 
struct  TxOrphanage::OrphanTxBase
 Allows providing orphan information externally. More...
 
struct  TxOrphanage::OrphanTx
 
struct  TxOrphanage::IteratorComparator
 

Variables

static constexpr auto ORPHAN_TX_EXPIRE_TIME {20min}
 Expiration time for orphan transactions. More...
 
static constexpr auto ORPHAN_TX_EXPIRE_INTERVAL {5min}
 Minimum time between orphan transactions expire time checks. More...
 

Variable Documentation

◆ ORPHAN_TX_EXPIRE_INTERVAL

constexpr auto ORPHAN_TX_EXPIRE_INTERVAL {5min}
staticconstexpr

Minimum time between orphan transactions expire time checks.

Definition at line 20 of file txorphanage.h.

◆ ORPHAN_TX_EXPIRE_TIME

constexpr auto ORPHAN_TX_EXPIRE_TIME {20min}
staticconstexpr

Expiration time for orphan transactions.

Definition at line 18 of file txorphanage.h.