Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
7f88c60
docs: add ApplicationQueryService release notes (#13587)
robert-zaremba Oct 21, 2022
f538e09
feat(cli): add module-account cli cmd and grpc get api (backport #136…
mergify[bot] Oct 24, 2022
afdf06a
fix(x/auth): allow multiple = signs in `GetTxsEvent` (backport #12474…
mergify[bot] Oct 24, 2022
ec09eae
fix: app-hash mismatch if upgrade migration commit is interrupted (ba…
mergify[bot] Oct 25, 2022
a653798
feat(cli): Add iavl-disable-fastnode cmd flag with proper description…
mergify[bot] Oct 26, 2022
4eed46e
build(deps): Bump github.com/cosmos/iavl from 0.19.3 to 0.19.4 (#13680)
julienrbrt Oct 28, 2022
9d7028d
feat: emit cached context events (backport #13063) (#13702)
mergify[bot] Oct 31, 2022
eb1e3eb
chore: prepare 0.46.4 changelog (#13716)
julienrbrt Nov 1, 2022
68ee142
ci: notify for 0.46.x releases (#13719)
julienrbrt Nov 1, 2022
c7a9435
docs: fix algolia on 0.46 (#13730)
julienrbrt Nov 2, 2022
ba49bff
ci: modifying docs in 0.46 should not redeploy docs (#13732)
julienrbrt Nov 2, 2022
e4ae994
fix: propagate msg events correctly in x/gov (backport #13728) (#13748)
mergify[bot] Nov 3, 2022
2899dcf
refactor: add error log when iavl set failed (backport #13803) (#13804)
mergify[bot] Nov 9, 2022
0d1ed1a
chore: bump tendermint to `0.34.23` (#13814)
julienrbrt Nov 9, 2022
2bd2cf1
fix: propagate events in x/group through sdk.Results (backport #13808…
mergify[bot] Nov 9, 2022
3a809e2
docs: update algolia index (#13823)
julienrbrt Nov 10, 2022
62443b8
fix: bank store migration (backport #13821) (#13829)
mergify[bot] Nov 10, 2022
68e54fa
feat(types): set custom GasConfig on Context for GasKVStore (backport…
mergify[bot] Nov 11, 2022
2114ec4
chore: prepare 0.46.5 release (#13816)
julienrbrt Nov 14, 2022
2d515e0
fix: Allow underscores in EventRegex (backport #13861) (#13864)
mergify[bot] Nov 15, 2022
0b81939
fix(group): add group members weight checks (backport #13869) (#13880)
mergify[bot] Nov 16, 2022
6b633ef
fix(group)!: Fix group min execution period (backport #13876) (#13885)
mergify[bot] Nov 16, 2022
29cf4bc
feat(bank): Add helper for v0.46 denom migration (#13891)
amaury1093 Nov 16, 2022
e5fef13
chore: impove 0.46.5 release notes (#13898)
julienrbrt Nov 17, 2022
c80177e
refactor: State Streaming Docs + Explicit Config Support (backport #1…
mergify[bot] Nov 17, 2022
b88f086
chore: remove typo (#13914) (#13917)
mergify[bot] Nov 18, 2022
2f55513
fix: correctly propagate msg errors in gov (backport #13918) (#13928)
mergify[bot] Nov 18, 2022
8cce748
feat(bank): enable 0.46.5 bank migration fix through migrator keeper …
robert-zaremba Nov 18, 2022
1d9c475
Merge tag 'v0.46.6' into prov/dwedul/46.6-bump
SpicyLemon Nov 21, 2022
1b0bfe6
Update changelog for version bump.
SpicyLemon Nov 21, 2022
f85c0b8
Bring in Cosmos-SDK PR 13651 that overhauls/cleans up the GetConfig f…
SpicyLemon Nov 21, 2022
42bc817
Fix the pruning command to use the existing viper instance (that has …
SpicyLemon Nov 21, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: correctly propagate msg errors in gov (backport cosmos#13918) (c…
…osmos#13928)

* fix: correctly propagate msg errors in gov (cosmos#13918)

* fix: correctly propagate msg errors in gov

* chore: update changelog

* fix: correctly check proposal status in tests

* chore: delete unused var

(cherry picked from commit 5581f7f)

# Conflicts:
#	CHANGELOG.md
#	x/gov/abci_test.go

* fix conflicts

* updates

Co-authored-by: John Letey <j@letey.de>
Co-authored-by: Julien Robert <julien@rbrt.fr>
  • Loading branch information
3 people authored Nov 18, 2022
commit 2f555130949806a1655271478fd0a33bf99bf960
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,16 @@ Ref: https://keepachangelog.com/en/1.0.0/

## [Unreleased]

## [v0.46.6](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.46.6) - 2022-11-18

### Improvements

* (config) [#13894](https://github.com/cosmos/cosmos-sdk/pull/13894) Support state streaming configuration in `app.toml` template and default configuration.

## Bug Fixes

* (x/gov) [#13918](https://github.com/cosmos/cosmos-sdk/pull/13918) Fix propagation of message errors when executing a proposal.

## [v0.46.5](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.46.5) - 2022-11-17

### Features
Expand Down
20 changes: 4 additions & 16 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,12 @@
# Cosmos SDK v0.46.5 Release Notes
# Cosmos SDK v0.46.6 Release Notes

This release introduces a number of serious bug fixes and improvements. Notably, an upgrade to Tendermint [v0.34.23](https://github.com/tendermint/tendermint/releases/tag/v0.34.23).
This release introduces small bug fixes and improvements.

If you are planning to migrate to v0.46, please use `v0.46.5`. All releases prior to `v0.46.5` are [retracted](https://go.dev/ref/mod#go-mod-file-retract) and **must NOT be used** (`go get` directly upgrades the SDK version to `>= v0.46.5` thanks to the retraction, current builds are not affected).

If your chain's state has coin metadata, an issue has been discovered in the bank module coin metadata migration. This issue is fixed in `v0.46.5`.

* If your chain is already on v0.46 using `<= v0.46.4` and has coin metadata, a **coordinated upgrade** to `v0.46.5` is required.
* Use the helper function `Migrate_V0464_To_V0465` for migrating a chain **already on v0.46 with versions <=v0.46.4** to the latest v0.46.5 correct state.
* If your chain is already on v0.46 using `<= v0.46.4` but has no coin metadata, this release is **non-breaking**.

Moreover, serious issues have been found in the group module. These issues are fixed in `v0.46.5`.

* If you use the group module, upgrade to `v0.46.5` **immediately**. A **coordinated upgrade** to `v0.46.5` is required.

When a chain is already using `<= v0.46.4`, but has no coin metadata and no group module, this release is **non-breaking**.
Please read the release notes of [v0.46.5](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.46.5) if you are upgrading from `<=0.46.4`.

Please see the [CHANGELOG](https://github.com/cosmos/cosmos-sdk/blob/release/v0.46.x/CHANGELOG.md) for an exhaustive list of changes.

Full Commit History: https://github.com/cosmos/cosmos-sdk/compare/v0.46.4...v0.46.5
Full Commit History: https://github.com/cosmos/cosmos-sdk/compare/v0.46.5...v0.46.6

**NOTE**: The changes mentioned in `v0.46.3` are **still** required:

Expand Down
4 changes: 3 additions & 1 deletion x/gov/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ func EndBlocker(ctx sdk.Context, keeper keeper.Keeper) {
if err == nil {
for idx, msg = range messages {
handler := keeper.Router().Handler(msg)
res, err := handler(cacheCtx, msg)

var res *sdk.Result
res, err = handler(cacheCtx, msg)
if err != nil {
break
}
Expand Down
16 changes: 8 additions & 8 deletions x/gov/abci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (

"github.com/cosmos/cosmos-sdk/simapp"
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
"github.com/cosmos/cosmos-sdk/x/gov"
"github.com/cosmos/cosmos-sdk/x/gov/keeper"
"github.com/cosmos/cosmos-sdk/x/gov/types"
Expand Down Expand Up @@ -340,10 +342,8 @@ func TestEndBlockerProposalHandlerFailed(t *testing.T) {
createValidators(t, stakingMsgSvr, ctx, []sdk.ValAddress{valAddr}, []int64{10})
staking.EndBlocker(ctx, app.StakingKeeper)

// Create a proposal where the handler will pass for the test proposal
// because the value of contextKeyBadProposal is true.
ctx = ctx.WithValue(contextKeyBadProposal, true)
proposal, err := app.GovKeeper.SubmitProposal(ctx, []sdk.Msg{mkTestLegacyContent(t)}, "")
msg := banktypes.NewMsgSend(authtypes.NewModuleAddress(types.ModuleName), addrs[0], sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(100000))))
proposal, err := app.GovKeeper.SubmitProposal(ctx, []sdk.Msg{msg}, "")
require.NoError(t, err)

proposalCoins := sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, app.StakingKeeper.TokensFromConsensusPower(ctx, 10)))
Expand All @@ -361,12 +361,12 @@ func TestEndBlockerProposalHandlerFailed(t *testing.T) {
newHeader.Time = ctx.BlockHeader().Time.Add(*app.GovKeeper.GetDepositParams(ctx).MaxDepositPeriod).Add(*app.GovKeeper.GetVotingParams(ctx).VotingPeriod)
ctx = ctx.WithBlockHeader(newHeader)

// Set the contextKeyBadProposal value to false so that the handler will fail
// during the processing of the proposal in the EndBlocker.
ctx = ctx.WithValue(contextKeyBadProposal, false)

// validate that the proposal fails/has been rejected
gov.EndBlocker(ctx, app.GovKeeper)

proposal, ok := app.GovKeeper.GetProposal(ctx, proposal.Id)
require.True(t, ok)
require.Equal(t, v1.StatusFailed, proposal.Status)
}

func createValidators(t *testing.T, stakingMsgSvr stakingtypes.MsgServer, ctx sdk.Context, addrs []sdk.ValAddress, powerAmt []int64) {
Expand Down
2 changes: 0 additions & 2 deletions x/gov/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ func SortByteArrays(src [][]byte) [][]byte {
return sorted
}

const contextKeyBadProposal = "contextKeyBadProposal"

var pubkeys = []cryptotypes.PubKey{
ed25519.GenPrivKey().PubKey(),
ed25519.GenPrivKey().PubKey(),
Expand Down