delete_claims_above_height with thread lock

This commit is contained in:
Jack Robison 2020-04-01 13:52:30 -04:00
parent e4fb2f4680
commit 640b5b0ea9
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -253,7 +253,7 @@ class BlockProcessor:
await self.run_in_thread_with_lock(self.backup_blocks, raw_blocks)
await self.run_in_thread_with_lock(flush_backup)
last -= len(raw_blocks)
self.db.sql.delete_claims_above_height(self.height)
await self.run_in_thread_with_lock(self.db.sql.delete_claims_above_height, self.height)
await self.prefetcher.reset_height(self.height)
REORG_COUNT.inc()