From 3ad6808d87c9671f2ee79e7fb8aa9574e542dfd5 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Wed, 20 Mar 2019 16:47:40 -0300 Subject: [PATCH] remove unused claim_id_hash --- lbrynet/wallet/server/block_processor.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lbrynet/wallet/server/block_processor.py b/lbrynet/wallet/server/block_processor.py index 07e03c2cf..11238c307 100644 --- a/lbrynet/wallet/server/block_processor.py +++ b/lbrynet/wallet/server/block_processor.py @@ -153,12 +153,5 @@ class LBRYBlockProcessor(BlockProcessor): certificate = Claim.from_bytes(cert_claim.value) claim_dict.validate_signature(address, certificate) return cert_id - except Exception as e: + except Exception: pass - -def claim_id_hash(txid, n): - # TODO: This should be in lbryschema - packed = txid + struct.pack('>I', n) - md = hashlib.new('ripemd160') - md.update(hashlib.sha256(packed).digest()) - return md.digest()