Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc_rpc_addavalanchenode.py
Show All 29 Lines | def add_interface_node(test_node) -> int: | ||||
n.wait_for_verack() | n.wait_for_verack() | ||||
return test_node.getpeerinfo()[-1]['id'] | return test_node.getpeerinfo()[-1]['id'] | ||||
class AddAvalancheNodeTest(BitcoinTestFramework): | class AddAvalancheNodeTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
self.extra_args = [['-avalanche=1', | self.extra_args = [['-avalanche=1', | ||||
'-avaproofstakeutxodustthreshold=1000000', | |||||
'-avaproofstakeutxoconfirmations=1', | '-avaproofstakeutxoconfirmations=1', | ||||
'-avacooldown=0']] | '-avacooldown=0']] | ||||
def run_test(self): | def run_test(self): | ||||
node = self.nodes[0] | node = self.nodes[0] | ||||
addrkey0 = node.get_deterministic_priv_key() | addrkey0 = node.get_deterministic_priv_key() | ||||
blockhashes = node.generatetoaddress(2, addrkey0.address) | blockhashes = node.generatetoaddress(2, addrkey0.address) | ||||
▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines |