Changeset View
Changeset View
Standalone View
Standalone View
test/functional/p2p_leak.py
Show All 13 Lines | |||||
import time | import time | ||||
from test_framework.messages import ( | from test_framework.messages import ( | ||||
msg_getaddr, | msg_getaddr, | ||||
msg_ping, | msg_ping, | ||||
msg_verack, | msg_verack, | ||||
msg_version, | msg_version, | ||||
) | ) | ||||
from test_framework.p2p import ( | from test_framework.p2p import P2PInterface, p2p_lock | ||||
p2p_lock, | |||||
P2PInterface, | |||||
) | |||||
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 = 10 | DISCOURAGEMENT_THRESHOLD = 10 | ||||
▲ Show 20 Lines • Show All 172 Lines • Show Last 20 Lines |