From 1e391d211b3866c3de6c289048af5fdb9eaa7e49 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Sat, 23 Oct 2021 18:39:04 -0400 Subject: [PATCH] fix attempting to update trending on abandoned claims --- lbry/wallet/server/block_processor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lbry/wallet/server/block_processor.py b/lbry/wallet/server/block_processor.py index d0e33e8120..3005085b58 100644 --- a/lbry/wallet/server/block_processor.py +++ b/lbry/wallet/server/block_processor.py @@ -749,6 +749,8 @@ def _abandon_claim(self, claim_hash: bytes, tx_num: int, nout: int, normalized_n self.support_txo_to_claim.pop(support_txo_to_clear) self.support_txos_by_claim[claim_hash].clear() self.support_txos_by_claim.pop(claim_hash) + if claim_hash.hex() in self.activation_info_to_send_es: + self.activation_info_to_send_es.pop(claim_hash.hex()) if normalized_name.startswith('@'): # abandon a channel, invalidate signatures self._invalidate_channel_signatures(claim_hash) @@ -1423,8 +1425,8 @@ def _get_cumulative_update_ops(self, height: int): self.touched_claim_hashes.update( {k for k, v in self.pending_channel_counts.items() if v != 0 and k not in self.removed_claim_hashes} ) - self.touched_claims_to_send_es.difference_update(self.removed_claim_hashes) self.touched_claims_to_send_es.update(self.touched_claim_hashes) + self.touched_claims_to_send_es.difference_update(self.removed_claim_hashes) self.removed_claims_to_send_es.update(self.removed_claim_hashes) def advance_block(self, block):