Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc_rpc_buildavalancheproof.py
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | def run_test(self): | ||||
invalid_privkey = good_stake.copy() | invalid_privkey = good_stake.copy() | ||||
invalid_privkey['privatekey'] = 'foobar' | invalid_privkey['privatekey'] = 'foobar' | ||||
check_buildavalancheproof_error(-8, | check_buildavalancheproof_error(-8, | ||||
"Invalid private key", | "Invalid private key", | ||||
[invalid_privkey], | [invalid_privkey], | ||||
) | ) | ||||
duplicate_stake = [good_stake] * 2 | |||||
check_buildavalancheproof_error(-8, | |||||
"Duplicated stake", | |||||
duplicate_stake, | |||||
) | |||||
self.log.info("Happy path") | self.log.info("Happy path") | ||||
assert node.buildavalancheproof(0, 0, proof_master, [good_stake]) | assert node.buildavalancheproof(0, 0, proof_master, [good_stake]) | ||||
if __name__ == '__main__': | if __name__ == '__main__': | ||||
BuildAvalancheProofTest().main() | BuildAvalancheProofTest().main() |