Changeset View
Changeset View
Standalone View
Standalone View
test/functional/p2p_invalid_locator.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2015-2017 The Bitcoin Core developers | # Copyright (c) 2015-2017 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 node responses to invalid locators. | """Test node responses to invalid locators. | ||||
""" | """ | ||||
from test_framework.messages import ( | from test_framework.messages import ( | ||||
MAX_LOCATOR_SZ, | MAX_LOCATOR_SZ, | ||||
msg_getblocks, | msg_getblocks, | ||||
msg_getheaders, | msg_getheaders, | ||||
) | ) | ||||
from test_framework.mininode import P2PInterface | from test_framework.p2p import P2PInterface | ||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
class InvalidLocatorTest(BitcoinTestFramework): | class InvalidLocatorTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
self.setup_clean_chain = False | self.setup_clean_chain = False | ||||
Show All 32 Lines |