Update lbrynet/wallet/claim_proofs.py

This commit is contained in:
Lex Berezhny 2018-10-18 20:01:13 +03:00
parent d0a7ca841b
commit 203d30d4f7

View file

@ -52,7 +52,7 @@ def verify_proof(proof, rootHash, name):
if i == 0 and 'txhash' in proof and 'nOut' in proof and 'last takeover height' in proof: if i == 0 and 'txhash' in proof and 'nOut' in proof and 'last takeover height' in proof:
if len(proof['txhash']) != 64: if len(proof['txhash']) != 64:
raise InvalidProofError("txhash was invalid: {}".format(proof['txhash'])) raise InvalidProofError("txhash was invalid: {}".format(proof['txhash']))
if not isinstance(proof['nOut'], (int,)): if not isinstance(proof['nOut'], int):
raise InvalidProofError("nOut was invalid: {}".format(proof['nOut'])) raise InvalidProofError("nOut was invalid: {}".format(proof['nOut']))
if not isinstance(proof['last takeover height'], (int,)): if not isinstance(proof['last takeover height'], (int,)):
raise InvalidProofError( raise InvalidProofError(