7.9 KiB
7.9 KiB
Changelog
[Unreleased]
Bug Fixes
- #20688 Avoid overslashing unbonding delegations after a redelegation.
- #19226 Ensure
GetLastValidatorsinx/stakingdoes not return an error whenMaxValidatorsexceeds total number of bonded validators.
Features
- #19537 Changing
MinCommissionRateinMsgUpdateParamsnow updates the minimum commission rate for all validators. - #20434 Add consensus address to validator query response
Improvements
-
#19779 Allows for setting
unbonding_timeto zero. -
#19277 Hooks calls on
SetUnbondingDelegationEntry,SetRedelegationEntry,SlashandRemoveValidatorreturns errors instead of logging just like other hooks calls. -
#18636
IterateBondedValidatorsByPower,GetDelegatorBonded,Delegate,Unbond,Slash,Jail,SlashRedelegation,ApplyAndReturnValidatorSetUpdatesmethods no longer panics on any kind of errors but instead returns appropriate errors. -
#18506 Detect the length of the ed25519 pubkey in CreateValidator to prevent panic.
API Breaking Changes
- #20238
NewKeepernow accepts acore/comet.Serviceas its last argument. - #19788 Remove
ABCIValidatorUpdateandABCIValidatorUpdateZero, useModuleValidatorUpdateandModuleValidatorUpdateIsZeroinstead. - #19754 Update to use
[]appmodule.ValidatorUpdateas return forApplyAndReturnValidatorSetUpdates. - #19414
NewStakingKeepertakes an environment variable instead of individual services. - #19742
NewStakeAuthorizationnow takesaddress.Codecas argument. - #19735 Update genesis api to match new
appmodule.HasGenesisinterface. - #18198
ValidatorandDelegatorinterfaces were moved togithub.com/cosmos/cosmos-sdk/typesto avoid interface dependency on staking in other modules. - #17778 Use collections for
Params- remove from
Keeper:GetParams,SetParams
- remove from
- #17486 Use collections for
RedelegationQueueKey:- remove from
types:GetRedelegationTimeKey - remove from
Keeper:RedelegationQueueIterator
- remove from
- #17562 Use collections for
ValidatorQueue- remove from
types:GetValidatorQueueKey,ParseValidatorQueueKey - remove from
Keeper:ValidatorQueueIterator
- remove from
- #17498 Use collections for
LastValidatorPower:- remove from
types:GetLastValidatorPowerKey - remove from
Keeper:LastValidatorsIterator,IterateLastValidators
- remove from
- #17291 Use collections for
UnbondingDelegationByValIndex:- remove from
types:GetUBDKeyFromValIndexKey,GetUBDsByValIndexKey,GetUBDByValIndexKey
- remove from
- (x/slashing) #17568 Use collections for
ValidatorMissedBlockBitmap:- remove from
types:ValidatorMissedBlockBitmapPrefixKey,ValidatorMissedBlockBitmapKey
- remove from
- #17481 Use collections for
UnbondingQueue:- remove from
Keeper:UBDQueueIterator - remove from
types:GetUnbondingDelegationTimeKey
- remove from
- #17123 Use collections for
Validators - #17270 Use collections for
UnbondingDelegation:- remove from
types:GetUBDsKey - remove from
Keeper:IterateUnbondingDelegations,IterateDelegatorUnbondingDelegations
- remove from
- #17336 Use collections for
RedelegationByValDstIndexKey:- remove from
types:GetREDByValDstIndexKey,GetREDsToValDstIndexKey
- remove from
- #17332 Use collections for
RedelegationByValSrcIndexKey:- remove from
types:GetREDKeyFromValSrcIndexKey,GetREDsFromValSrcIndexKey
- remove from
- #17315 Use collections for
RedelegationKey:- remove from
keeper:GetRedelegation
- remove from
- #17260 Use collections for
DelegationKey:- remove from
types:GetDelegationKey,GetDelegationsKey
- remove from
- #17288 Use collections for
UnbondingIndex:- remove from
types:GetUnbondingIndexKey.
- remove from
- #17256 Use collections for
UnbondingID. - #17260 Use collections for
ValidatorByConsAddr:- remove from
types:GetValidatorByConsAddrKey
- remove from
- #17248 Use collections for
UnbondingType.- remove from
types:GetUnbondingTypeKey.
- remove from
- #17062, #19788 Remove
GetValidatorUpdatesandValidatorUpdatesstorage. - #17026 Use collections for
LastTotalPower:- remove
Keeper:SetLastTotalPower,GetLastTotalPower
- remove
- #17335 Remove usage of
"cosmossdk.io/x/staking/types".Infraction_*in favour of"cosmossdk.io/api/cosmos/staking/v1beta1".Infraction_in order to remove dependency between modules on staking - #20295
GetValidatorByConsAddrnow returns the Cosmos SDKcryptotypes.Pubkeyinstead ofcometcrypto.Publickey. The caller is responsible to translate the returned value to the expected type.- Remove
CmtConsPublicKey()andTmConsPublicKey()fromValidatorinterface and as methods on theValidatorstruct.
- Remove
State Breaking changes
- #18841 In a undelegation or redelegation if the shares being left delegated correspond to less than 1 token (in base denom) the entire delegation gets removed.
- #18142 Introduce
key_rotation_feeparam to calculate fees while rotating the keys - #19740
InitGenesisandExportGenesismodule code and keeper code do not panic but return errors. - #20845 Remove HistoricalInfo from the staking modules storage