This commit is contained in:
parent
579f95f9fc
commit
84b978278e
1 changed files with 5 additions and 1 deletions
|
@ -1708,8 +1708,12 @@ class BlockchainProcessorService(BlockchainService):
|
||||||
raise err
|
raise err
|
||||||
except asyncio.CancelledError:
|
except asyncio.CancelledError:
|
||||||
raise
|
raise
|
||||||
|
except MemoryError:
|
||||||
|
self.log.error("out of memory, shutting down")
|
||||||
|
self.shutdown_event.set()
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
self.log.exception("error in block processor loop: %s", err)
|
self.log.exception("fatal error in block processor loop: %s", err)
|
||||||
|
self.shutdown_event.set()
|
||||||
raise err
|
raise err
|
||||||
finally:
|
finally:
|
||||||
self._ready_to_stop.set()
|
self._ready_to_stop.set()
|
||||||
|
|
Loading…
Reference in a new issue