Skip to content

chore: bump cosmos-sdk to v0.500.1 + CHANGELOG - #348

Merged
tbruyelle merged 7 commits into
mainfrom
chore/bump-sdk-v0.500-final
Jun 23, 2026
Merged

chore: bump cosmos-sdk to v0.500.1 + CHANGELOG#348
tbruyelle merged 7 commits into
mainfrom
chore/bump-sdk-v0.500-final

Conversation

@tbruyelle

@tbruyelle tbruyelle commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Compat with consensus key rotation:

  • Satisfy StakingHook interface as a no-op in x/coredaos
  • Add migration for the new staking params rotationFee.
  • Add distribution keeper to staking keeper

The final SDK release added AfterConsensusPubKeyUpdate to the
StakingHooks interface (consensus pubkey rotation). Implement it as a
no-op in x/coredaos to satisfy the interface.
@tbruyelle tbruyelle changed the title chore: bump cosmos-sdk to v0.500.1 chore: bump cosmos-sdk to v0.500.1 + CHANGELOG Jun 23, 2026
Export MigrateStakingParams and add a test that runs it against a test
app, reproducing the post-RunMigrations state where KeyRotationFee is the
zero-value Coin and asserting the migration sets a valid 1 ATONE fee in
the bond denom (plus the 5% commission migration).
@tbruyelle
tbruyelle force-pushed the chore/bump-sdk-v0.500-final branch from bb8a086 to 4e6065a Compare June 23, 2026 06:43
MsgRotateConsPubKey funds the community pool with the KeyRotationFee via
the staking keeper's distributionKeeper, which was never set in the app
wiring, causing a nil-pointer panic (caught by TestAppStateDeterminism).
@tbruyelle
tbruyelle force-pushed the chore/bump-sdk-v0.500-final branch from 76b9b05 to 0b3cc72 Compare June 23, 2026 08:57
Comment thread app/upgrades/v4/upgrades.go Outdated
params.MaxCommissionRate = fivePercent
params.MinCommissionRate = fivePercent

// Initialize the consensus pubkey rotation fee to 1 ATONE, denominated in the chain bond denom.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason to not put it way more expensive? this operations imho should not happen so often, and we try should to avoid a validator rotating key each block

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the remind, I raised the value to 100 ATONEs 8bade79

go env GOVERSION embeds the toolchain's baked-in experiments (e.g.
go1.26.4-X:nodwarf5 on Arch Linux's go package), which made
check_go_version fail despite a correct version. Strip both the leading
'go' and the '-X:...' suffix so the comparison matches go.mod.
@tbruyelle
tbruyelle merged commit 2516c49 into main Jun 23, 2026
14 checks passed
@tbruyelle
tbruyelle deleted the chore/bump-sdk-v0.500-final branch June 23, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants