clear claim_to_txo cache before reading

This commit is contained in:
Jack Robison 2021-07-26 12:38:13 -04:00
parent 25147d8897
commit f8d2f02c5d
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -719,6 +719,8 @@ class LevelDB:
self.claim_to_txo[k.claim_hash] = v
self.txo_to_claim[(v.tx_num, v.position)] = k.claim_hash
self.claim_to_txo.clear()
self.txo_to_claim.clear()
start = time.perf_counter()
self.logger.info("loading claims")
await asyncio.get_event_loop().run_in_executor(None, read_claim_txos)