mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
Merge #9499: Use recent-rejects, orphans, and recently-replaced txn for compact-block-reconstruction
c594580Add braces around AddToCompactExtraTransactions (Matt Corallo)1ccfe9bClarify comment about mempool/extra conflicts (Matt Corallo)fac4c78Make PartiallyDownloadedBlock::InitData's second param const (Matt Corallo)b55b416Add extra_count lower bound to compact reconstruction debug print (Matt Corallo)863edb4Consider all (<100k memusage) txn for compact-block-extra-txn cache (Matt Corallo)7f8c8caConsider all orphan txn for compact-block-extra-txn cache (Matt Corallo)93380c5Use replaced transactions in compact block reconstruction (Matt Corallo)1531652Keep shared_ptrs to recently-replaced txn for compact blocks (Matt Corallo)edded80Make ATMP optionally return the CTransactionRefs it replaced (Matt Corallo)c735540Move ORPHAN constants from validation.h to net_processing.h (Matt Corallo)
This commit is contained in:
@@ -9,6 +9,15 @@
|
||||
#include "net.h"
|
||||
#include "validationinterface.h"
|
||||
|
||||
/** Default for -maxorphantx, maximum number of orphan transactions kept in memory */
|
||||
static const unsigned int DEFAULT_MAX_ORPHAN_TRANSACTIONS = 100;
|
||||
/** Expiration time for orphan transactions in seconds */
|
||||
static const int64_t ORPHAN_TX_EXPIRE_TIME = 20 * 60;
|
||||
/** Minimum time between orphan transactions expire time checks in seconds */
|
||||
static const int64_t ORPHAN_TX_EXPIRE_INTERVAL = 5 * 60;
|
||||
/** Default number of orphan+recently-replaced txn to keep around for block reconstruction */
|
||||
static const unsigned int DEFAULT_BLOCK_RECONSTRUCTION_EXTRA_TXN = 100;
|
||||
|
||||
/** Register with a network node to receive its signals */
|
||||
void RegisterNodeSignals(CNodeSignals& nodeSignals);
|
||||
/** Unregister a network node */
|
||||
|
||||
Reference in New Issue
Block a user