Changeset View
Changeset View
Standalone View
Standalone View
test/functional/feature_loadblock.py
Show All 20 Lines | |||||
) | ) | ||||
from test_framework.util import assert_equal, wait_until | from test_framework.util import assert_equal, wait_until | ||||
class LoadblockTest(BitcoinTestFramework): | class LoadblockTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
self.num_nodes = 2 | self.num_nodes = 2 | ||||
self.supports_cli = False | |||||
def run_test(self): | def run_test(self): | ||||
self.nodes[1].setnetworkactive(state=False) | self.nodes[1].setnetworkactive(state=False) | ||||
self.nodes[0].generate(100) | self.nodes[0].generate(100) | ||||
# Parsing the url of our node to get settings for config file | # Parsing the url of our node to get settings for config file | ||||
data_dir = self.nodes[0].datadir | data_dir = self.nodes[0].datadir | ||||
node_url = urllib.parse.urlparse(self.nodes[0].url) | node_url = urllib.parse.urlparse(self.nodes[0].url) | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |