Skip to content

No handling for RPC exceptions during GSP startup #133

@BirdWizards

Description

@BirdWizards

ConnectToZMQ function in xayagame/game.cpp can throw exceptions from an underlying RPC call to game_sendupdates.
The call to ConnectToZMQ from Game::Start() in xayagame/game.cpp does not handle this exception, and as such, the GSP daemon can crash during startup, if the xaya daemon has an unstable connection to the blockchain.

This can be avoided by omitting the ConnectToZMQ call from the Game::Start function, and instead relying on the ConnectionCheckerThread to connect with retry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions