Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_framework/test_framework.py
Show First 20 Lines • Show All 393 Lines • ▼ Show 20 Lines | class BitcoinTestFramework(): | ||||
def join_network(self): | def join_network(self): | ||||
""" | """ | ||||
Join the (previously split) network halves together. | Join the (previously split) network halves together. | ||||
""" | """ | ||||
connect_nodes_bi(self.nodes[1], self.nodes[2]) | connect_nodes_bi(self.nodes[1], self.nodes[2]) | ||||
self.sync_all() | self.sync_all() | ||||
def sync_all(self, nodes=None, **kwargs): | def sync_blocks(self, nodes=None, **kwargs): | ||||
sync_blocks(nodes or self.nodes, **kwargs) | sync_blocks(nodes or self.nodes, **kwargs) | ||||
def sync_mempools(self, nodes=None, **kwargs): | |||||
sync_mempools(nodes or self.nodes, **kwargs) | sync_mempools(nodes or self.nodes, **kwargs) | ||||
def sync_all(self, nodes=None, **kwargs): | |||||
self.sync_blocks(nodes, **kwargs) | |||||
self.sync_mempools(nodes, **kwargs) | |||||
# Private helper methods. These should not be accessed by the subclass | # Private helper methods. These should not be accessed by the subclass | ||||
# test scripts. | # test scripts. | ||||
def _start_logging(self): | def _start_logging(self): | ||||
# Add logger and logging handlers | # Add logger and logging handlers | ||||
self.log = logging.getLogger('TestFramework') | self.log = logging.getLogger('TestFramework') | ||||
self.log.setLevel(logging.DEBUG) | self.log.setLevel(logging.DEBUG) | ||||
# Create file handler to log all messages | # Create file handler to log all messages | ||||
▲ Show 20 Lines • Show All 176 Lines • Show Last 20 Lines |