Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc_rpc_buildavalancheproof.py
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | def run_test(self): | ||||
"Invalid master key", | "Invalid master key", | ||||
[good_stake], | [good_stake], | ||||
master_key=bytes_to_wif(b'f00') | master_key=bytes_to_wif(b'f00') | ||||
) | ) | ||||
negative_vout = good_stake.copy() | negative_vout = good_stake.copy() | ||||
negative_vout['vout'] = -1 | negative_vout['vout'] = -1 | ||||
check_buildavalancheproof_error(-22, | check_buildavalancheproof_error(-22, | ||||
"vout must be positive", | "vout cannot be negative", | ||||
[negative_vout], | [negative_vout], | ||||
) | ) | ||||
zero_height = good_stake.copy() | zero_height = good_stake.copy() | ||||
zero_height['height'] = 0 | zero_height['height'] = 0 | ||||
check_buildavalancheproof_error(-22, | check_buildavalancheproof_error(-22, | ||||
"height must be positive", | "height must be positive", | ||||
[zero_height], | [zero_height], | ||||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |