x/consensus module allows governance to update CometBFT’s ABCI consensus parameters on a live chain without a software upgrade.
Consensus Parameters
The module manages the following CometBFT consensus parameters:Block Parameters
Evidence Parameters
Validator Parameters
ABCI Parameters
Messages
MsgUpdateParams
Updates consensus parameters via governance. All ofblock, evidence, and validator must be provided. abci is optional.
AuthorityParams
Authority management can be centralized via thex/consensus module using AuthorityParams. The AuthorityParams field in ConsensusParams stores the authority address on-chain. When set, it takes precedence over the per-keeper authority parameter.
Keeper constructors still accept the authority parameter. It is used as a fallback when no authority is configured in consensus params.
How It Works
When a module validates authority (e.g., inUpdateParams), it checks consensus params first. If no authority is set there, it falls back to the keeper’s authority field:
AuthorityParams in consensus params via a governance proposal targeting the x/consensus module’s MsgUpdateParams.