Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-finalize-block.py
Show All 20 Lines | |||||
class FinalizeBlockTest(BitcoinTestFramework): | class FinalizeBlockTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.num_nodes = 3 | self.num_nodes = 3 | ||||
self.extra_args = [["-finalizationdelay=0"], | self.extra_args = [["-finalizationdelay=0"], | ||||
["-finalizationdelay=0"], []] | ["-finalizationdelay=0"], []] | ||||
self.finalization_delay = 2 * 60 * 60 | self.finalization_delay = 2 * 60 * 60 | ||||
def skip_test_if_missing_module(self): | |||||
self.skip_if_no_wallet() | |||||
def run_test(self): | def run_test(self): | ||||
node = self.nodes[0] | node = self.nodes[0] | ||||
self.mocktime = int(time.time()) | self.mocktime = int(time.time()) | ||||
self.log.info("Test block finalization...") | self.log.info("Test block finalization...") | ||||
node.generate(10) | node.generate(10) | ||||
tip = node.getbestblockhash() | tip = node.getbestblockhash() | ||||
▲ Show 20 Lines • Show All 283 Lines • Show Last 20 Lines |