diff options
| author | Matt Corallo <[email protected]> | 2017-01-09 14:38:06 -0500 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2017-01-10 14:48:42 -0500 |
| commit | 1531652e02d856c1b8c3ba6f6e51e1983ac0540c (patch) | |
| tree | ff7caff18cef736fd802f3c7e0684d1e20fcf895 /src/net_processing.h | |
| parent | Make ATMP optionally return the CTransactionRefs it replaced (diff) | |
| download | discoin-1531652e02d856c1b8c3ba6f6e51e1983ac0540c.tar.xz discoin-1531652e02d856c1b8c3ba6f6e51e1983ac0540c.zip | |
Keep shared_ptrs to recently-replaced txn for compact blocks
Diffstat (limited to 'src/net_processing.h')
| -rw-r--r-- | src/net_processing.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net_processing.h b/src/net_processing.h index 92ea21df7..a338e14a9 100644 --- a/src/net_processing.h +++ b/src/net_processing.h @@ -15,6 +15,8 @@ static const unsigned int DEFAULT_MAX_ORPHAN_TRANSACTIONS = 100; 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); |