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. --- test/functional/p2p_leak.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/functional/p2p_leak.py') 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 -- cgit v1.2.3