This commit is contained in:
Jack Robison 2022-08-27 09:51:04 -04:00
parent 579f95f9fc
commit 84b978278e
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -1708,8 +1708,12 @@ class BlockchainProcessorService(BlockchainService):
raise err
except asyncio.CancelledError:
raise
except MemoryError:
self.log.error("out of memory, shutting down")
self.shutdown_event.set()
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
finally:
self._ready_to_stop.set()