cosmos-sdk/x/slashing/CHANGELOG.md
mergify[bot] 1bc7ff528c
refactor(x/slashing): audit x/slashing changes (backport #21270) (#21279)
Co-authored-by: Julián Toledano <JulianToledano@users.noreply.github.com>
2024-08-13 22:14:05 +02:00

2.8 KiB

Changelog

[Unreleased]

Features

Improvements

  • #19458 Avoid writing SignInfo's for validators who did not miss a block. (Every BeginBlock)
  • #18959 Avoid deserialization of parameters with every validator lookup
  • #18636 JailUntil and Tombstone methods no longer panics if the signing info does not exist for the validator but instead returns error.

API Breaking Changes

  • #20238 NewAppModule now takes in a core/comet.Service an argument. BeginBlocker now takes in a core/comet.Service.
  • #20026 Removal of the Address.String() method and related changes:
    • Migrate now takes a ValidatorAddressCodec as argument.
    • Migrator has a new field of ValidatorAddressCodec type.
  • #16441 Params state is migrated to collections. GetParams has been removed.
  • #17023 Use collections for ValidatorSigningInfo:
    • remove Keeper: SetValidatorSigningInfo, GetValidatorSigningInfo, IterateValidatorSigningInfos
  • #17044 Use collections for AddrPubkeyRelation:
    • remove from types: AddrPubkeyRelationKey
    • remove from Keeper: AddPubkey
  • #19440 Slashing Module creation takes appmodule.Environment instead of individual services
  • #19458 ValidatorSigningInfo.IndexOffset is deprecated, and no longer used. The index is now derived using just the StartHeight.
  • #19740 InitGenesis and ExportGenesis module code and keeper code do not panic but return errors.

Bug Fixes