Changeset View
Changeset View
Standalone View
Standalone View
test/functional/p2p_compactblocks.py
Show First 20 Lines • Show All 835 Lines • ▼ Show 20 Lines | class CompactBlocksTest(BitcoinTestFramework): | ||||
def run_test(self): | def run_test(self): | ||||
# Setup the p2p connections | # Setup the p2p connections | ||||
self.test_node = self.nodes[0].add_p2p_connection(TestP2PConn()) | self.test_node = self.nodes[0].add_p2p_connection(TestP2PConn()) | ||||
self.ex_softfork_node = self.nodes[1].add_p2p_connection( | self.ex_softfork_node = self.nodes[1].add_p2p_connection( | ||||
TestP2PConn(), services=NODE_NETWORK) | TestP2PConn(), services=NODE_NETWORK) | ||||
self.old_node = self.nodes[1].add_p2p_connection( | self.old_node = self.nodes[1].add_p2p_connection( | ||||
TestP2PConn(), services=NODE_NETWORK) | TestP2PConn(), services=NODE_NETWORK) | ||||
self.test_node.wait_for_verack() | |||||
# We will need UTXOs to construct transactions in later tests. | # We will need UTXOs to construct transactions in later tests. | ||||
self.make_utxos() | self.make_utxos() | ||||
self.log.info("Running tests:") | self.log.info("Running tests:") | ||||
self.log.info("\tTesting SENDCMPCT p2p message... ") | self.log.info("\tTesting SENDCMPCT p2p message... ") | ||||
self.test_sendcmpct(self.nodes[0], self.test_node, 1) | self.test_sendcmpct(self.nodes[0], self.test_node, 1) | ||||
sync_blocks(self.nodes) | sync_blocks(self.nodes) | ||||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |