Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc_rpc_avalancheproof.py
Show First 20 Lines • Show All 203 Lines • ▼ Show 20 Lines | def run_test(self): | ||||
node.assert_start_raises_init_error( | node.assert_start_raises_init_error( | ||||
self.extra_args[0] + [ | self.extra_args[0] + [ | ||||
"-avaproof={}".format(proof), | "-avaproof={}".format(proof), | ||||
"-avamasterkey=0", | "-avamasterkey=0", | ||||
], | ], | ||||
expected_msg="Error: the avalanche master key is invalid", | expected_msg="Error: the avalanche master key is invalid", | ||||
) | ) | ||||
# Wrong key | |||||
node.assert_start_raises_init_error( | |||||
self.extra_args[0] + [ | |||||
"-avaproof={}".format(proof), | |||||
"-avamasterkey=cN55daf1HotwBAgAKWVgDcoppmUNDtQSfb7XLutTLeAgVc3u8hik", | |||||
], | |||||
expected_msg="Error: failed to add a level of delegation", | |||||
) | |||||
# Delegating to self | |||||
node.assert_start_raises_init_error( | |||||
self.extra_args[0] + [ | |||||
"-avaproof={}".format(proof), | |||||
"-avamasterkey=cND2ZvtabDbJ1gucx9GWH6XT9kgTAqfb6cotPt5Q5CyxVDhid2EN", | |||||
"-avasessionkey=cND2ZvtabDbJ1gucx9GWH6XT9kgTAqfb6cotPt5Q5CyxVDhid2EN", | |||||
deadalnix: Why should this be an error? | |||||
], | |||||
expected_msg="Error: failed to add a level of delegation", | |||||
) | |||||
def check_proof_init_error(proof, message): | def check_proof_init_error(proof, message): | ||||
node.assert_start_raises_init_error( | node.assert_start_raises_init_error( | ||||
self.extra_args[0] + [ | self.extra_args[0] + [ | ||||
"-avaproof={}".format(proof), | "-avaproof={}".format(proof), | ||||
"-avamasterkey=cND2ZvtabDbJ1gucx9GWH6XT9kgTAqfb6cotPt5Q5CyxVDhid2EN", | "-avamasterkey=cND2ZvtabDbJ1gucx9GWH6XT9kgTAqfb6cotPt5Q5CyxVDhid2EN", | ||||
], | ], | ||||
expected_msg="Error: " + message, | expected_msg="Error: " + message, | ||||
) | ) | ||||
Show All 23 Lines |
Why should this be an error?