Changeset View
Changeset View
Standalone View
Standalone View
test/functional/merkle_blocks.py
Show All 14 Lines | class MerkleBlockTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.num_nodes = 4 | self.num_nodes = 4 | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
# Nodes 0/1 are "wallet" nodes, Nodes 2/3 are used for testing | # Nodes 0/1 are "wallet" nodes, Nodes 2/3 are used for testing | ||||
self.extra_args = [[], [], [], ["-txindex"]] | self.extra_args = [[], [], [], ["-txindex"]] | ||||
def setup_network(self): | def setup_network(self): | ||||
self.setup_nodes() | self.setup_nodes() | ||||
connect_nodes(self.nodes[0], 1) | connect_nodes(self.nodes[0], self.nodes[1]) | ||||
connect_nodes(self.nodes[0], 2) | connect_nodes(self.nodes[0], self.nodes[2]) | ||||
connect_nodes(self.nodes[0], 3) | connect_nodes(self.nodes[0], self.nodes[3]) | ||||
self.sync_all() | self.sync_all() | ||||
def run_test(self): | def run_test(self): | ||||
self.log.info("Mining blocks...") | self.log.info("Mining blocks...") | ||||
self.nodes[0].generate(105) | self.nodes[0].generate(105) | ||||
self.sync_all() | self.sync_all() | ||||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |