sidebar_position |
---|
1 |
Functionality to modify CometBFT's ABCI consensus params.
The x/consensus
module keeps state of the consensus params from cometbft.:
The consensus module stores it's params in state with the prefix of 0x05
,
it can be updated with governance or the address with authority.
- Params:
0x05 | ProtocolBuffer(cometbft.ConsensusParams)
https://github.com/cosmos/cosmos-sdk/blob/release/v0.52.x/x/consensus/proto/cosmos/consensus/v1/consensus.proto#L9-L15
The consensus module provides methods to Set and Get consensus params. It is recommended to use the x/consensus
module keeper to get consensus params instead of accessing them through the context.
Update consensus params.
https://github.com/cosmos/cosmos-sdk/blob/release/v0.52.x/x/consensus/proto/cosmos/consensus/v1/tx.proto#L23-L44
The message will fail under the following conditions:
- The signer is not the set authority
- Not all values are set
The consensus module emits the following events:
Type | Attribute Key | Attribute Value |
---|---|---|
string | authority | msg.Signer |
string | parameters | consensus Parameters |