Because there is no exception handler, block data cannot be saved and recovered.
In function Stoa.recoverBlock(...) and Stoa.task(...)
await this.emitBlock(block);
await this.emitBoaStats();
It would be nice to make the following exceptions so that the processing performed on the function can be completed.
try {
await this.emitBlock(block);
await this.emitBoaStats();
} catch (e) {
}
It would also be important to find and resolve the cause of errors occurring at socket.io.emit.
Because there is no exception handler, block data cannot be saved and recovered.
In function Stoa.recoverBlock(...) and Stoa.task(...)
It would be nice to make the following exceptions so that the processing performed on the function can be completed.
It would also be important to find and resolve the cause of errors occurring at socket.io.emit.