aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2020-07-08 09:33:30 +0200
committerJon Atack <jon@atack.com>2020-07-11 19:41:24 +0200
commit06059b0c2a6c2db70c87a7715f8a344a13400fa1 (patch)
treea0f7c09df27c25e8a3c624f6b3ad1334670105e9 /test
parent1d4024bca8086cceff7539dd8c15e0b7fe1cc5ea (diff)
net: rename DEFAULT_BANSCORE_THRESHOLD to DISCOURAGEMENT_THRESHOLD
and move it from validation to net processing.
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/p2p_leak.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/p2p_leak.py b/test/functional/p2p_leak.py
index a354202263..6cf252e626 100755
--- a/test/functional/p2p_leak.py
+++ b/test/functional/p2p_leak.py
@@ -26,7 +26,7 @@ from test_framework.util import (
wait_until,
)
-DEFAULT_BANSCORE_THRESHOLD = 100
+DISCOURAGEMENT_THRESHOLD = 100
class CLazyNode(P2PInterface):
@@ -70,7 +70,7 @@ class CNodeNoVersionBan(CLazyNode):
# NOTE: implementation-specific check here. Remove if bitcoind ban behavior changes
def on_open(self):
super().on_open()
- for _ in range(DEFAULT_BANSCORE_THRESHOLD):
+ for _ in range(DISCOURAGEMENT_THRESHOLD):
self.send_message(msg_verack())
# Node that never sends a version. This one just sits idle and hopes to receive