|
1 | | -# Cosmos SDK v0.42.5 "Stargate" Release Notes |
| 1 | +# Cosmos SDK v0.42.6 "Stargate" Release Notes |
2 | 2 |
|
3 | 3 | This release includes various minor bugfixes and improvments, including: |
4 | 4 |
|
5 | | -- Fix support for building the Cosmos SDK on ARM architectures, |
6 | | -- Fix the `[appd] keys show/list` CLI subcommands for multisigs, |
7 | | -- Internal code performance improvment. |
| 5 | +- x/bank's InitGenesis optimization, which should significantly decrease genesis initialization time, |
| 6 | +- bump Tendermint to v0.34.11 to fix state sync issues, |
| 7 | +- add `cosmos_sdk_version` to `node_info` to be able to query the SDK version used by a node, |
| 8 | +- IBC bugfixes and improvements (see below for more info), |
| 9 | +- new fields on `sdk.Context` (see below for more info). |
8 | 10 |
|
9 | | -It also introduces one new feature: adding the `[appd] config` subcommand back to the SDK. |
| 11 | +See the [Cosmos SDK v0.42.6 milestone](https://github.com/cosmos/cosmos-sdk/milestone/45?closed=1) on our issue tracker for the exhaustive list of all changes. |
10 | 12 |
|
11 | | -See the [Cosmos SDK v0.42.5 milestone](https://github.com/cosmos/cosmos-sdk/milestone/44?closed=1) on our issue tracker for the exhaustive list of all changes. |
| 13 | +### IBC Bugfixes and Improvements |
12 | 14 |
|
13 | | -### The `config` Subcommand |
| 15 | +The `[appd] query ibc client header` is fixed and allows querying by height for the header and node-state command. This allows easier venerability of which IBC tokens belong to which chains. IBC's ExportGenesis now exports all fields, including previously missing `NextClientSequence`, `NextConnectionSequence` and `NextChannelSequence`. A new subcommand `[appd] query ibc-transfer escrow-address` has been added to get the escrow address for a channel; it can be used to then query balance of escrowed tokens. |
14 | 16 |
|
15 | | -One new feature introduced in the Stargate series was the merging of the two CLI binaries `[appd]` and `[appcli]` into one single application binary. In this process, the `[appcli] config` subcommand, which was used to save client-side configuration into a TOML file, was removed. |
| 17 | +### New Fields on `sdk.Context` |
16 | 18 |
|
17 | | -Due to [popular demand](https://github.com/cosmos/cosmos-sdk/issues/8529), we have introduced this feature back to the SDK, under the `[appd] config` subcommand. The functionality is as follows: |
| 19 | +Two fields have been added on `sdk.Context`: |
18 | 20 |
|
19 | | -- `[appd] config`: Output all client-side configuration. |
20 | | -- `[appd] config [config-name]`: Get the given configuration (e.g. `keyring-backend` or `node-id`). |
21 | | -- `[appd] config [config-name] [config-value]`: Set and persist the given configuration with the new value. |
22 | | - |
23 | | -All configurations are persisted to the filesystem, under the path `$APP_HOME/config/client.toml`. For the list of all possible client-side configurations, please have a look at this `client.toml` file, as it is heavily commented. |
24 | | - |
25 | | -Environment variables binding to client-side configuration also works. For example, the command `KEYRING_BACKEND=os [appd] tx bank send ...` will bind ENV variable to the `keyring-backend` config. The order or precedence for config is: `flags > env vars > client.toml file`. |
| 21 | +- `ctx.HeaderHash` adds the current block header hash obtained during abci.RequestBeginBlock to the Context, |
| 22 | +- `ctx.GasMeter().RefundGas(<amount>, <description>)` adds support for refunding gas directly to the gas meter. |
0 commit comments