Skip to content

Exception handler encountered while performing socket.io.emit does not exist. #415

@MichaelKim20

Description

@MichaelKim20

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions