Update lbrynet/wallet/claim_proofs.py

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

View file

@ -54,7 +54,7 @@ def verify_proof(proof, rootHash, name):
raise InvalidProofError("txhash was invalid: {}".format(proof['txhash']))
if not isinstance(proof['nOut'], int):
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(
'last takeover height was invalid: {}'.format(proof['last takeover height']))
to_hash += get_hash_for_outpoint(