Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc_p2p_avalanche_transaction_voting.py
Show All 10 Lines | |||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
from test_framework.util import assert_equal | from test_framework.util import assert_equal | ||||
from test_framework.wallet import MiniWallet | from test_framework.wallet import MiniWallet | ||||
class AvalancheTransactionVotingTest(BitcoinTestFramework): | class AvalancheTransactionVotingTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
self.extra_args = [['-enableavalanche=1']] | self.extra_args = [['-enableavalanche=1', | ||||
'-avaproofstakeutxoconfirmations=0']] | |||||
def run_test(self): | def run_test(self): | ||||
node = self.nodes[0] | node = self.nodes[0] | ||||
poll_node = get_ava_p2p_interface(node) | poll_node = get_ava_p2p_interface(node) | ||||
# Create helper to check expected poll responses | # Create helper to check expected poll responses | ||||
avakey = ECPubKey() | avakey = ECPubKey() | ||||
avakey.set(bytes.fromhex(node.getavalanchekey())) | avakey.set(bytes.fromhex(node.getavalanchekey())) | ||||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |