Skip to content

Commit

Permalink
QA: Add test to get 'Given claim_script is not hex' error
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimon committed Sep 26, 2018
1 parent 35364b6 commit a7736f8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions qa/rpc-tests/feature_fedpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,13 @@ def run_test(self):
print('RPC ERROR:', e.error['message'])
assert("Peg-in Bitcoin transaction needs more confirmations to be sent." in e.error["message"])

try:
pegtxid = sidechain.createrawpegin(raw, proof, 'AEIOU')
raise Exception("Peg-in with non-hex claim_script should fail.")
except JSONRPCException as e:
print('RPC ERROR:', e.error['message'])
assert("Given claim_script is not hex." in e.error["message"])

# Should fail due to non-matching wallet address
try:
scriptpubkey = sidechain.validateaddress(get_new_unconfidential_address(sidechain))["scriptPubKey"]
Expand Down

0 comments on commit a7736f8

Please sign in to comment.