From cdef8b4852b7c7082ed53499479f9f75cf296220 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Fri, 8 Oct 2021 16:34:48 -0400 Subject: [PATCH] clear es attributes during initial sync --- lbry/wallet/server/block_processor.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lbry/wallet/server/block_processor.py b/lbry/wallet/server/block_processor.py index 370bc5f1e..9be9cf758 100644 --- a/lbry/wallet/server/block_processor.py +++ b/lbry/wallet/server/block_processor.py @@ -345,6 +345,11 @@ class BlockProcessor: "applying extended claim expiration fork on claims accepted by, %i", self.height ) await self.run_in_thread_with_lock(self.db.apply_expiration_extension_fork) + if self.db.first_sync: + self.db.search_index.clear_caches() + self.touched_claims_to_send_es.clear() + self.removed_claims_to_send_es.clear() + self.activation_info_to_send_es.clear() # TODO: we shouldnt wait on the search index updating before advancing to the next block if not self.db.first_sync: await self.db.reload_blocking_filtering_streams()