fix activating non existent claim

This commit is contained in:
Jack Robison 2021-09-25 16:29:54 -04:00
parent 89cd6a9aa4
commit 86f21da28b
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -916,6 +916,9 @@ class BlockProcessor:
amount = self.db.get_claim_txo_amount( amount = self.db.get_claim_txo_amount(
activated.claim_hash activated.claim_hash
) )
if amount is None:
# print("\tskip activate for non existent claim")
continue
self.activated_claim_amount_by_name_and_hash[(activated.normalized_name, activated.claim_hash)] = amount self.activated_claim_amount_by_name_and_hash[(activated.normalized_name, activated.claim_hash)] = amount
else: else:
txo_type = ACTIVATED_SUPPORT_TXO_TYPE txo_type = ACTIVATED_SUPPORT_TXO_TYPE