Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc_p2p_avalanche_proof_voting.py
Show First 20 Lines • Show All 317 Lines • ▼ Show 20 Lines | class AvalancheProofVotingTest(BitcoinTestFramework): | ||||
def vote_tests(self, node): | def vote_tests(self, node): | ||||
self.restart_node(0, extra_args=['-enableavalanche=1', | self.restart_node(0, extra_args=['-enableavalanche=1', | ||||
'-avaproofstakeutxoconfirmations=2', | '-avaproofstakeutxoconfirmations=2', | ||||
'-avacooldown=0', | '-avacooldown=0', | ||||
'-avalancheconflictingproofcooldown=0', | '-avalancheconflictingproofcooldown=0', | ||||
'-whitelist=noban@127.0.0.1', ]) | '-whitelist=noban@127.0.0.1', ]) | ||||
self.get_quorum(node) | |||||
ava_node = get_ava_p2p_interface(node) | ava_node = get_ava_p2p_interface(node) | ||||
# Generate coinbases to use for stakes | # Generate coinbases to use for stakes | ||||
stakes_key = node.get_deterministic_priv_key() | stakes_key = node.get_deterministic_priv_key() | ||||
blocks = node.generatetoaddress(4, stakes_key.address) | blocks = node.generatetoaddress(4, stakes_key.address) | ||||
# Get the ava key so we can verify signatures. | # Get the ava key so we can verify signatures. | ||||
ava_key = ECPubKey() | ava_key = ECPubKey() | ||||
▲ Show 20 Lines • Show All 220 Lines • Show Last 20 Lines |