clear claim_to_txo cache before reading
This commit is contained in:
parent
31d7823498
commit
fe69afaa56
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue