Skip to content

Exit if SwitchToConsensus fails #3656

@ebuchman

Description

@ebuchman

It's possible the ConsensusState.Start() returns an error. However, when the BlockchainReactor calls SwitchToConsensus, this error is simply logged and ignored. Since this leaves the node in an unintended state (ie. not participating in consensus), we should probably exit instead, perhaps via panicing.

This is partial follow up to #3295

Metadata

Metadata

Assignees

No one assigned

    Labels

    C:consensusComponent: ConsensusC:syncComponent: Fast Sync, State SyncT:jankType Jank! Non-urgent but still high-impact fixes.stalefor use by stalebot

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions