Skip to content

types: allow genesis file to have 0 validators #2015

@ebuchman

Description

@ebuchman

InitChain allows the app to return the initial validator set. This is nice because it allows the initial validator set to be a function of application state, for instance some set of bonds/delegations.

However, Tendermint currently requires the genesis to have at least one validator. We should loosen this requirement, but then ensure that the validator set after InitChain has at least one validator ...

Note we create the state before calling InitChain and then update it after InitChain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C:abciComponent: Application Blockchain InterfaceC:consensusComponent: ConsensusT:enhancementType: Enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions