Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc_rpc_avalancheproof.py
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | def add_interface_node(test_node) -> str: | ||||
n.wait_for_verack() | n.wait_for_verack() | ||||
return test_node.getpeerinfo()[-1]['id'] | return test_node.getpeerinfo()[-1]['id'] | ||||
class LegacyAvalancheProofTest(BitcoinTestFramework): | class LegacyAvalancheProofTest(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.extra_args = [ | self.extra_args = [['-enableavalanche=1', | ||||
['-enableavalanche=1', '-avaproofstakeutxoconfirmations=1', '-avacooldown=0', '-legacyavaproof=1']] * self.num_nodes | '-avaproofstakeutxodustthreshold={}'.format( | ||||
PROOF_DUST_THRESHOLD), | |||||
'-avaproofstakeutxoconfirmations=1', | |||||
'-avacooldown=0', | |||||
'-legacyavaproof=1']] * self.num_nodes | |||||
self.supports_cli = False | self.supports_cli = False | ||||
self.rpc_timeout = 120 | self.rpc_timeout = 120 | ||||
def run_test(self): | def run_test(self): | ||||
# Turn off node 1 while node 0 mines blocks to generate stakes, | # Turn off node 1 while node 0 mines blocks to generate stakes, | ||||
# so that we can later try starting node 1 with an orphan proof. | # so that we can later try starting node 1 with an orphan proof. | ||||
self.stop_node(1) | self.stop_node(1) | ||||
▲ Show 20 Lines • Show All 590 Lines • Show Last 20 Lines |