Changeset View
Changeset View
Standalone View
Standalone View
test/functional/p2p_addr_relay.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2020 The Bitcoin Core developers | # Copyright (c) 2020 The Bitcoin Core developers | ||||
# Distributed under the MIT software license, see the accompanying | # Distributed under the MIT software license, see the accompanying | ||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | # file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
""" | """ | ||||
Test addr relay | Test addr relay | ||||
""" | """ | ||||
from test_framework.messages import ( | from test_framework.messages import ( | ||||
CAddress, | CAddress, | ||||
NODE_NETWORK, | NODE_NETWORK, | ||||
msg_addr, | msg_addr, | ||||
) | ) | ||||
from test_framework.p2p import ( | from test_framework.p2p import P2PInterface | ||||
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, | ||||
) | ) | ||||
import time | import time | ||||
ADDRS = [] | ADDRS = [] | ||||
for i in range(10): | for i in range(10): | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |