Changeset View
Changeset View
Standalone View
Standalone View
test/functional/p2p_invalid_block.py
Show All 31 Lines | def set_test_params(self): | ||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
def run_test(self): | def run_test(self): | ||||
test = TestManager(self, self.options.tmpdir) | test = TestManager(self, self.options.tmpdir) | ||||
test.add_all_connections(self.nodes) | test.add_all_connections(self.nodes) | ||||
self.tip = None | self.tip = None | ||||
self.block_time = None | self.block_time = None | ||||
self.extra_args = [["-whitelist=127.0.0.1"]] | |||||
network_thread_start() | network_thread_start() | ||||
test.run() | test.run() | ||||
def get_tests(self): | def get_tests(self): | ||||
if self.tip is None: | if self.tip is None: | ||||
self.tip = int("0x" + self.nodes[0].getbestblockhash(), 0) | self.tip = int("0x" + self.nodes[0].getbestblockhash(), 0) | ||||
self.block_time = int(time.time()) + 1 | self.block_time = int(time.time()) + 1 | ||||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |