Temporary hack to fix initial sync slowdown
This commit is contained in:
parent
cbb1e504cc
commit
7399452294
@ -223,7 +223,10 @@ class BlockProcessor(server.db.DB):
|
||||
touched = set()
|
||||
loop = asyncio.get_event_loop()
|
||||
try:
|
||||
await loop.run_in_executor(None, do_it)
|
||||
if self.caught_up:
|
||||
await loop.run_in_executor(None, do_it)
|
||||
else:
|
||||
do_it()
|
||||
except ChainReorg:
|
||||
await self.handle_chain_reorg(touched)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user