From e451d1e3c66350017da195335f428a96fdc7d840 Mon Sep 17 00:00:00 2001 From: stickies-v Date: Tue, 25 Jul 2023 15:41:54 +0100 Subject: net processing: clamp -maxorphantx to uint32_t bounds --- src/net_processing.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net_processing.h') 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; -- cgit v1.2.3