Skip to content

Commit

Permalink
fix duplicate trending notification to ES
Browse files Browse the repository at this point in the history
  • Loading branch information
jackrobison committed Nov 12, 2021
1 parent d82dc4f commit e998f10
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lbry/wallet/server/block_processor.py
Expand Up @@ -1407,9 +1407,13 @@ def _get_cumulative_update_ops(self, height: int):
self.db.prefix_db.effective_amount.stage_put(
(name, new_effective_amount, tx_num, position), (touched,)
)
self._add_claim_activation_change_notification(
touched.hex(), height, prev_effective_amount, new_effective_amount
)
if touched in self.claim_hash_to_txo or touched in self.removed_claim_hashes \
or touched in self.pending_support_amount_change:
# exclude sending notifications for claims/supports that activated but
# weren't added/spent in this block
self._add_claim_activation_change_notification(
touched.hex(), height, prev_effective_amount, new_effective_amount
)

for channel_hash, count in self.pending_channel_counts.items():
if count != 0:
Expand Down

0 comments on commit e998f10

Please sign in to comment.