fix es sync

This commit is contained in:
Jack Robison 2021-07-07 23:05:18 -04:00
parent b9c2ee745a
commit a84b9ee396
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -609,7 +609,10 @@ class LevelDB:
def all_claims_producer(self, batch_size=500_000):
batch = []
for claim_hash in self.db.iterator(prefix=Prefixes.claim_to_txo.prefix, include_value=False):
for claim_hash, v in self.db.iterator(prefix=Prefixes.claim_to_txo.prefix):
# TODO: fix the couple of claim txos that dont have controlling names
if not self.db.get(Prefixes.claim_takeover.pack_key(Prefixes.claim_to_txo.unpack_value(v).name)):
continue
claim = self._fs_get_claim_by_hash(claim_hash[1:])
if claim:
batch.append(claim)