fix initial sync for sync without claims

This commit is contained in:
Victor Shyba 2020-12-08 20:50:11 -03:00 committed by Lex Berezhny
parent 2a911e0135
commit 426a0449fd

View file

@ -259,7 +259,7 @@ class BlockchainSync(Sync):
async def sync_claims(self, blocks) -> bool:
delete_claims = takeovers = claims_with_changed_supports = claims_with_changed_reposts = 0
initial_sync = not await self.db.has_claims()
initial_sync = not await self.db.has_filters()
with Progress(self.db.message_queue, CLAIMS_INIT_EVENT) as p:
if initial_sync:
total, batches = await self.distribute_unspent_txos(CLAIM_TYPE_CODES)