Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc_rpc_addavalanchenode.py
Show All 10 Lines | from test_framework.messages import ( | ||||
AvalancheDelegationLevel, | AvalancheDelegationLevel, | ||||
AvalancheProof, | AvalancheProof, | ||||
FromHex, | FromHex, | ||||
hash256, | hash256, | ||||
ser_string, | ser_string, | ||||
) | ) | ||||
from test_framework.p2p import P2PInterface | from test_framework.p2p import P2PInterface | ||||
from test_framework.test_framework import BitcoinTestFramework | from test_framework.test_framework import BitcoinTestFramework | ||||
from test_framework.util import ( | from test_framework.util import assert_raises_rpc_error | ||||
assert_raises_rpc_error, | |||||
) | |||||
from test_framework.wallet_util import bytes_to_wif | from test_framework.wallet_util import bytes_to_wif | ||||
def add_interface_node(test_node) -> int: | def add_interface_node(test_node) -> int: | ||||
"""Create a peer, connect it to test_node, return the nodeid of the peer as | """Create a peer, connect it to test_node, return the nodeid of the peer as | ||||
registered by test_node. | registered by test_node. | ||||
""" | """ | ||||
n = P2PInterface() | n = P2PInterface() | ||||
▲ Show 20 Lines • Show All 161 Lines • Show Last 20 Lines |