Skip to content

MainchainRPCCheck shouldn't spin wait on non-init call #608

@instagibbs

Description

@instagibbs

Currently the mainchaind-checker fires once on init(exiting early), and once every N minutes. When validating peg-ins it will call the mainchaind's RPC looking for non-error responses, as well as the expected parent genesis blockhash.

In the case of a RPC_IN_WARMUP error, we wait 1 second and try the RPC loop again. This should probably only happen on the initial startup check, and instead fail on non-initial checks. Failure here would just mean it will try to succeed again in N minutes anyways.

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