Changeset View
Changeset View
Standalone View
Standalone View
test/functional/p2p_unrequested_blocks.py
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
import time | import time | ||||
from test_framework.blocktools import ( | from test_framework.blocktools import ( | ||||
create_block, | create_block, | ||||
create_coinbase, | create_coinbase, | ||||
create_tx_with_script, | create_tx_with_script, | ||||
) | ) | ||||
from test_framework.messages import ( | from test_framework.messages import ( | ||||
MSG_BLOCK, | |||||
CBlockHeader, | CBlockHeader, | ||||
CInv, | CInv, | ||||
MSG_BLOCK, | |||||
msg_block, | msg_block, | ||||
msg_headers, | msg_headers, | ||||
msg_inv, | msg_inv, | ||||
) | ) | ||||
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_raises_rpc_error, | assert_raises_rpc_error, | ||||
connect_nodes, | connect_nodes, | ||||
) | ) | ||||
▲ Show 20 Lines • Show All 256 Lines • Show Last 20 Lines |