diff --git a/lbrynet/wallet/resolve.py b/lbrynet/wallet/resolve.py index 5b20ca758..44e8dd717 100644 --- a/lbrynet/wallet/resolve.py +++ b/lbrynet/wallet/resolve.py @@ -398,17 +398,6 @@ def validate_claim_signature_and_get_channel_name(claim_result, certificate_clai is_signed = tx.outputs[claim_result['nout']].is_signed_by(cert_tx.outputs[certificate_claim['nout']]) return is_signed, certificate_claim['name'] return False, None - if not certificate_claim: - return False, None - if 'value' not in certificate_claim: - log.warning('Got an invalid claim while parsing certificates, please report: %s', certificate_claim) - return False, None - certificate = decoded_certificate or certificate_claim['value'] - if not isinstance(certificate, Claim): - raise TypeError("Certificate is not a ClaimDict: %s" % str(type(certificate))) - if _validate_signed_claim(claim, claim_address, name, certificate): - return True, certificate_claim['name'] - return False, None def _validate_signed_claim(claim, claim_address, name, certificate): diff --git a/lbrynet/wallet/server/block_processor.py b/lbrynet/wallet/server/block_processor.py index d7a45a608..508d4acc2 100644 --- a/lbrynet/wallet/server/block_processor.py +++ b/lbrynet/wallet/server/block_processor.py @@ -1,6 +1,5 @@ import hashlib import struct -from binascii import unhexlify import msgpack from torba.server.hash import hash_to_hex_str