aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.h
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2017-01-09 14:38:06 -0500
committerMatt Corallo <git@bluematt.me>2017-01-10 14:48:42 -0500
commit1531652e02d856c1b8c3ba6f6e51e1983ac0540c (patch)
treeff7caff18cef736fd802f3c7e0684d1e20fcf895 /src/net_processing.h
parentedded808fc4eee94c178e1779b90d1c87a08c23a (diff)
downloadbitcoin-1531652e02d856c1b8c3ba6f6e51e1983ac0540c.tar.xz
Keep shared_ptrs to recently-replaced txn for compact blocks
Diffstat (limited to 'src/net_processing.h')
-rw-r--r--src/net_processing.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net_processing.h b/src/net_processing.h
index 92ea21df72..a338e14a97 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);