aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.h
diff options
context:
space:
mode:
authorstickies-v <stickies-v@protonmail.com>2023-07-25 15:41:54 +0100
committerstickies-v <stickies-v@protonmail.com>2023-07-25 21:50:37 +0100
commite451d1e3c66350017da195335f428a96fdc7d840 (patch)
tree8a8a38b98c8c5170ef76c409499f5724db7dc5d5 /src/net_processing.h
parentaa89e04e07ca9ff51b1d7d310a11821c6ad963cf (diff)
downloadbitcoin-e451d1e3c66350017da195335f428a96fdc7d840.tar.xz
net processing: clamp -maxorphantx to uint32_t bounds
Diffstat (limited to 'src/net_processing.h')
-rw-r--r--src/net_processing.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net_processing.h b/src/net_processing.h
index b1e6e4eebb..619bf6220d 100644
--- a/src/net_processing.h
+++ b/src/net_processing.h
@@ -17,7 +17,7 @@ class ChainstateManager;
/** Whether transaction reconciliation protocol should be enabled by default. */
static constexpr bool DEFAULT_TXRECONCILIATION_ENABLE{false};
/** Default for -maxorphantx, maximum number of orphan transactions kept in memory */
-static const unsigned int DEFAULT_MAX_ORPHAN_TRANSACTIONS = 100;
+static const uint32_t DEFAULT_MAX_ORPHAN_TRANSACTIONS{100};
/** Default number of non-mempool transactions to keep around for block reconstruction. Includes
orphan, replaced, and rejected transactions. */
static const unsigned int DEFAULT_BLOCK_RECONSTRUCTION_EXTRA_TXN = 100;