Browse Source

Temporary hack to fix initial sync slowdown

master
Neil Booth 8 years ago
parent
commit
7399452294
  1. 3
      server/block_processor.py

3
server/block_processor.py

@ -223,7 +223,10 @@ class BlockProcessor(server.db.DB):
touched = set()
loop = asyncio.get_event_loop()
try:
if self.caught_up:
await loop.run_in_executor(None, do_it)
else:
do_it()
except ChainReorg:
await self.handle_chain_reorg(touched)

Loading…
Cancel
Save