From 06059b0c2a6c2db70c87a7715f8a344a13400fa1 Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Wed, 8 Jul 2020 09:33:30 +0200 Subject: net: rename DEFAULT_BANSCORE_THRESHOLD to DISCOURAGEMENT_THRESHOLD and move it from validation to net processing. --- src/net_processing.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/net_processing.h') diff --git a/src/net_processing.h b/src/net_processing.h index eadf29e59f..3479ef6865 100644 --- a/src/net_processing.h +++ b/src/net_processing.h @@ -23,6 +23,8 @@ static const unsigned int DEFAULT_MAX_ORPHAN_TRANSACTIONS = 100; static const unsigned int DEFAULT_BLOCK_RECONSTRUCTION_EXTRA_TXN = 100; static const bool DEFAULT_PEERBLOOMFILTERS = false; static const bool DEFAULT_PEERBLOCKFILTERS = false; +/** Threshold for marking a node to be discouraged, e.g. disconnected and added to the discouragement filter. */ +static const int DISCOURAGEMENT_THRESHOLD{100}; class PeerLogicValidation final : public CValidationInterface, public NetEventsInterface { private: -- cgit v1.2.3