Skip to content

Commit

Permalink
net: change NODE_NETWORK_LIMITED_MIN_BLOCKS to 2700 (2 days)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackcoinDev committed Sep 23, 2024
1 parent d3384c4 commit e09d5dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/net_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion src/protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -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),

Expand Down

0 comments on commit e09d5dd

Please sign in to comment.