clear claim_to_txo cache before reading

This commit is contained in:
Jack Robison 2021-07-26 12:38:13 -04:00 committed by Victor Shyba
parent 31d7823498
commit fe69afaa56

View file

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