Changeset View
Changeset View
Standalone View
Standalone View
test/functional/p2p_leak.py
Show All 24 Lines | |||||
) | ) | ||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
from test_framework.util import ( | from test_framework.util import ( | ||||
assert_equal, | assert_equal, | ||||
assert_greater_than_or_equal, | assert_greater_than_or_equal, | ||||
wait_until, | wait_until, | ||||
) | ) | ||||
DISCOURAGEMENT_THRESHOLD = 100 | DISCOURAGEMENT_THRESHOLD = 10 | ||||
class CLazyNode(P2PInterface): | class CLazyNode(P2PInterface): | ||||
def __init__(self): | def __init__(self): | ||||
super().__init__() | super().__init__() | ||||
self.unexpected_msg = False | self.unexpected_msg = False | ||||
self.ever_connected = False | self.ever_connected = False | ||||
▲ Show 20 Lines • Show All 163 Lines • Show Last 20 Lines |