Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StoreKey = "Consensus"
Functions ¶
This section is empty.
Types ¶
type Keeper ¶
type Keeper struct {
ParamsStore collections.Item[cmtproto.ConsensusParams]
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryCodec, storeService storetypes.KVStoreService, authority string, em event.Service) Keeper
func (*Keeper) GetAuthority ¶
func (Keeper) Params ¶ added in v0.50.0
func (k Keeper) Params(ctx context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params queries params of consensus module
func (Keeper) UpdateParams ¶ added in v0.50.0
func (k Keeper) UpdateParams(ctx context.Context, msg *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error)
UpdateParams updates consensus parameters. Note that the new authority value takes effect at the start of the next block, when BeginBlock loads fresh consensus params from the store. Within the same block as this update, ValidateAuthority still checks against the old authority.
Click to show internal directories.
Click to hide internal directories.