From 98017e9a763cfaeb94132cff91ced5d8cf866cc6 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Sat, 29 Oct 2022 17:14:41 -0400 Subject: [PATCH] fix uncaught error in es sync --- hub/db/db.py | 2 +- hub/elastic_sync/service.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hub/db/db.py b/hub/db/db.py index a554ffc..a6903a5 100644 --- a/hub/db/db.py +++ b/hub/db/db.py @@ -790,7 +790,7 @@ class SecondaryDB: for touched in claim_hashes: extra = {} claim_txo = claims[touched] - if not claim_txo: + if not claim_txo or (claim_txo and not controlling_claims[claim_txo.normalized_name]): yield touched, None, extra continue if touched in total_extra: diff --git a/hub/elastic_sync/service.py b/hub/elastic_sync/service.py index e2ecb57..48e9b35 100644 --- a/hub/elastic_sync/service.py +++ b/hub/elastic_sync/service.py @@ -250,7 +250,7 @@ class ElasticSyncService(BlockchainReaderService): apply_blocking=False, apply_filtering=False): if not claim: - self.log.warning("wat") + self.log.warning("cannot sync claim %s", (claim_hash or b'').hex()) continue claims[claim_hash] = claim total_extras[claim_hash] = claim