Skip to content

Commit

Permalink
fix attempting to update trending on abandoned claims
Browse files Browse the repository at this point in the history
  • Loading branch information
jackrobison committed Oct 23, 2021
1 parent e10486d commit 1e391d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lbry/wallet/server/block_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 1e391d2

Please sign in to comment.