From e09d5ddefcf8a8b6c5bdcea9203f19aaf55d43bf Mon Sep 17 00:00:00 2001 From: BlackcoinDev Date: Mon, 23 Sep 2024 15:54:34 +0200 Subject: [PATCH] net: change NODE_NETWORK_LIMITED_MIN_BLOCKS to 2700 (2 days) --- src/net_processing.cpp | 3 ++- src/protocol.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 7bf730d847..3b3c259967 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -142,7 +142,8 @@ static const unsigned int MAX_BLOCKS_TO_ANNOUNCE = 8; /** Maximum number of unconnecting headers announcements before DoS score */ static const int MAX_NUM_UNCONNECTING_HEADERS_MSGS = 10; /** Minimum blocks required to signal NODE_NETWORK_LIMITED */ -static const unsigned int NODE_NETWORK_LIMITED_MIN_BLOCKS = 288; +// Blackcoin: change to reflect 2 days at 64s block time +static const unsigned int NODE_NETWORK_LIMITED_MIN_BLOCKS = 2700; /** Average delay between local address broadcasts */ static constexpr auto AVG_LOCAL_ADDRESS_BROADCAST_INTERVAL{24h}; /** Average delay between peer address broadcasts */ diff --git a/src/protocol.h b/src/protocol.h index e7a916a2fd..a6a67876d4 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -287,7 +287,7 @@ enum ServiceFlags : uint64_t { // See BIP157 and BIP158 for details on how this is implemented. NODE_COMPACT_FILTERS = (1 << 6), // NODE_NETWORK_LIMITED means the same as NODE_NETWORK with the limitation of only - // serving the last 288 (2 day) blocks + // serving the last 2700 (2 day) blocks // See BIP159 for details on how this is implemented. NODE_NETWORK_LIMITED = (1 << 10),