fix _get_pending_claim_name

This commit is contained in:
Jack Robison 2021-07-29 19:23:29 -04:00 committed by Victor Shyba
parent c42ee926da
commit bc0c1b9a3e

View file

@ -706,8 +706,8 @@ class BlockProcessor:
def _get_pending_claim_name(self, claim_hash: bytes) -> Optional[str]:
assert claim_hash is not None
if claim_hash in self.txo_to_claim:
return self.txo_to_claim[claim_hash].name
if claim_hash in self.claim_hash_to_txo:
return self.txo_to_claim[self.claim_hash_to_txo[claim_hash]].name
claim_info = self.db.get_claim_txo(claim_hash)
if claim_info:
return claim_info.name