Skip to content

Commit

Permalink
Merge pull request #220 from bnb-chain/upgrade_47.3
Browse files Browse the repository at this point in the history
feat: upgrade cosmos-sdk to v0.47.3
  • Loading branch information
unclezoro committed Jun 13, 2023
2 parents a19185c + af6ab45 commit 8a56883
Show file tree
Hide file tree
Showing 129 changed files with 6,828 additions and 5,861 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
- uses: technote-space/get-diff-action@v6.1.1
id: git_diff
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/dependabot-update-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ jobs:
token: ${{ secrets.PRBOT_PAT }}
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
- name: Extract updated dependency
id: deps
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ jobs:
# with:
# # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
# version: v1.50.1

15 changes: 10 additions & 5 deletions .github/workflows/sims-045.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
ref: "release/v0.45.x"
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
- run: make build

install-runsim:
Expand All @@ -32,7 +33,8 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
- name: Install runsim
run: go install github.com/cosmos/tools/cmd/runsim@v1.0.0
- uses: actions/cache@v3
Expand All @@ -49,7 +51,8 @@ jobs:
ref: "release/v0.45.x"
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
- uses: actions/cache@v3
with:
path: ~/go/bin
Expand All @@ -67,7 +70,8 @@ jobs:
ref: "release/v0.45.x"
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
- uses: actions/cache@v3
with:
path: ~/go/bin
Expand All @@ -86,7 +90,8 @@ jobs:
ref: "release/v0.45.x"
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
- uses: actions/cache@v3
with:
path: ~/go/bin
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/sims-046.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
ref: "release/v0.46.x"
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
- run: make build

install-runsim:
Expand All @@ -32,7 +33,8 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
- name: Install runsim
run: go install github.com/cosmos/tools/cmd/runsim@v1.0.0
- uses: actions/cache@v3
Expand All @@ -50,7 +52,8 @@ jobs:
ref: "release/v0.46.x"
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
- uses: actions/cache@v3
with:
path: ~/go/bin
Expand All @@ -68,7 +71,8 @@ jobs:
ref: "release/v0.46.x"
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
- uses: actions/cache@v3
with:
path: ~/go/bin
Expand All @@ -86,7 +90,8 @@ jobs:
ref: "release/v0.46.x"
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
- uses: actions/cache@v3
with:
path: ~/go/bin
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/sims-047.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
ref: "release/v0.47.x"
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
- run: make build

install-runsim:
Expand All @@ -32,7 +33,8 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
- name: Install runsim
run: go install github.com/cosmos/tools/cmd/runsim@v1.0.0
- uses: actions/cache@v3
Expand All @@ -50,7 +52,8 @@ jobs:
ref: "release/v0.47.x"
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
- uses: actions/cache@v3
with:
path: ~/go/bin
Expand All @@ -68,7 +71,8 @@ jobs:
ref: "release/v0.47.x"
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
- uses: actions/cache@v3
with:
path: ~/go/bin
Expand All @@ -86,7 +90,8 @@ jobs:
ref: "release/v0.47.x"
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
- uses: actions/cache@v3
with:
path: ~/go/bin
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/sims-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
- name: Install runsim
run: go install github.com/cosmos/tools/cmd/runsim@v1.0.0
- uses: actions/cache@v3
Expand All @@ -36,7 +37,8 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
- uses: actions/cache@v3
with:
path: ~/go/bin
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/sims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
- run: make build
- name: Install runsim
run: go install github.com/cosmos/tools/cmd/runsim@v1.0.0
Expand All @@ -38,7 +39,8 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
- uses: actions/cache@v3
with:
path: ~/go/bin
Expand All @@ -54,7 +56,8 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
- uses: actions/cache@v3
with:
path: ~/go/bin
Expand All @@ -71,7 +74,8 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
- uses: actions/cache@v3
with:
path: ~/go/bin
Expand Down
21 changes: 14 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
- name: Create a file with all core Cosmos SDK pkgs
run: go list ./... > pkgs.txt
- name: Split pkgs into 4 files
Expand Down Expand Up @@ -56,7 +57,8 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
cache: true
cache-dependency-path: go.sum
- uses: technote-space/get-diff-action@v6.1.1
Expand Down Expand Up @@ -87,7 +89,8 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
cache: true
cache-dependency-path: go.sum
- uses: technote-space/get-diff-action@v6.1.1
Expand Down Expand Up @@ -117,7 +120,8 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
cache: true
cache-dependency-path: go.sum
- uses: technote-space/get-diff-action@v6.1.1
Expand Down Expand Up @@ -188,7 +192,8 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
cache: true
cache-dependency-path: go.sum
- uses: technote-space/get-diff-action@v6.1.1
Expand Down Expand Up @@ -217,7 +222,8 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
cache: true
cache-dependency-path: go.sum
- uses: technote-space/get-diff-action@v6.1.1
Expand All @@ -242,7 +248,8 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19.8
go-version: "1.19"
check-latest: true
cache: true
cache-dependency-path: simapp/go.sum
- uses: technote-space/get-diff-action@v6.1.1
Expand Down
2 changes: 2 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ run:
tests: false
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 5m
skip-files:
- server/grpc/gogoreflection/serverreflection.go

linters:
disable-all: true
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ devdoc-update:
### Protobuf ###
###############################################################################

protoVer=0.11.6
protoVer=0.13.0
protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer)
protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName)

Expand Down
23 changes: 12 additions & 11 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# Cosmos SDK v0.47.2 Release Notes
# Cosmos SDK v0.47.3 Release Notes

πŸ’¬ [**Release Discussion**](https://github.com/cosmos/community)

## πŸ“ Changelog

Check out the [changelog](https://github.com/cosmos/cosmos-sdk/blob/v0.47.2/CHANGELOG.md) for an exhaustive list of changes or [compare changes](https://github.com/cosmos/cosmos-sdk/compare/release/v0.47.1...v0.47.2) from last release.

Refer to the [upgrading guide](https://github.com/cosmos/cosmos-sdk/blob/release/v0.47.x/UPGRADING.md) when migrating from `v0.46.x` to `v0.47.0`.
πŸ’¬ [**Release Discussion**](https://github.com/orgs/cosmos/discussions/categories/announcements)

## πŸš€ Highlights

For this second patch release of the `v0.47.x` line, we focused on fixing bugs and improving the developer experience.
Missed the v0.47.0 announcement? Read it [here](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.47.0).
For this third patch release of the `v0.47.x` line, some of the notable changes include:

Notably, [a fix](https://github.com/cosmos/cosmos-sdk/pull/15683) for loading archival states (thank you @catShaark).
Additionally, the release fixes an issue where querying previous block heights would return an incorrect timestamp.
* The [barberry](https://forum.cosmos.network/t/cosmos-sdk-security-advisory-barberry/10825) security vulnerability is resolved. All chains using Cosmos SDK `<= v0.47.2` are advised to upgrade to `v0.47.3` **immediately**. A chain is safe as soon as **33%+1** of the voting power has upgraded. Coordinate with your validators to upgrade as soon as possible.
* A command to be able to bootstrap comet from a local snapshot with [`<app> comet bootstrap-state`](https://docs.cosmos.network/v0.47/run-node/run-node#local-state-sync).
* Commands to manage snapshots: Add `snapshot.Cmd(appCreator)` to your chain root command for using them.
* The default logger is now `cosmossdk.io/log`, which supports coloring πŸŸ₯🟩πŸŸͺ🟦 and filtering again.
* A bug fix in `x/group` migration. Chains migrating from v0.46.x to v0.47.x must use at least v0.47.**3**.

Check out the [changelog](https://github.com/cosmos/cosmos-sdk/blob/v0.47.3/CHANGELOG.md) for an exhaustive list of changes or [compare changes](https://github.com/cosmos/cosmos-sdk/compare/release/v0.47.2...v0.47.3) from last release.

Refer to the [upgrading guide](https://github.com/cosmos/cosmos-sdk/blob/release/v0.47.x/UPGRADING.md) when migrating from `v0.46.x` to `v0.47.0`.
Loading

0 comments on commit 8a56883

Please sign in to comment.