Skip to content
Cosmopediaby Unity Nodes
ReleasesSDKv0.40.0-rc2GitHub ↗

v0.40.0-rc2

cosmos/cosmos-sdkv0.40.0-rc203-11-2020prerelease

Client Breaking

• (x/upgrade) #7697 Rename flag name "--time" to "--upgrade-time", "--info" to "--upgrade-info", to keep it consistent with help message.

API Breaking

• (x/staking/types) #7447 Remove bech32 PubKey support: • `ValidatorI` interface update. `GetConsPubKey` renamed to `TmConsPubKey` (consensus public key must be a tendermint key). `TmConsPubKey`, `GetConsAddr` methods return error.

• `Validator` update. Methods changed in `ValidatorI` (as described above) and `ToTmValidator` return error.

• `Validator.ConsensusPubkey` type changed from `string` to `codectypes.Any`.

• `MsgCreateValidator.Pubkey` type changed from `string` to `codectypes.Any`.

• Deprecating and renaming `MakeEncodingConfig` to `MakeTestEncodingConfig` (both in `simapp` and `simapp/params` packages).

• (tx) #7688 The gRPC simulate service method has been moved from `cosmos.base.v1beta1.simulate` to `cosmos.tx.v1beta1`, as a method in the Tx service.

• #7764 Added module initialization options: • `server/types.AppExporter` requires extra argument: `AppOptions`.

• `server.AddCommands` requires extra argument: `addStartFlags types.ModuleInitFlags`

• `x/crisis.NewAppModule` has a new attribute: `skipGenesisInvariants`. PR

Features

• (tx) #7688 Add a new Tx gRPC service with methods `Simulate` and `GetTx` (by hash).

• Modules • `x/crisis` has a new function: `AddModuleInitFlags`, which will register optional crisis module flags for the start command.

Bug Fixes

• (client) #7699 Fix panic in context when setting invalid nodeURI. `WithNodeURI` does not set the `Client` in the context.

• (x/gov) #7641 Fix tally calculation precision error.

Improvements

• (rest) #7649 Return an unsigned tx in legacy GET /tx endpoint when signature conversion fails

• (cli) #7764 Update x/banking and x/crisis InitChain to improve node startup time

← Back to Releases