diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f68afa98c..8ab42d378 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,7 +48,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.16.4 + go-version: 1.17.0 - name: Checkout Comment PR Branch uses: actions/checkout@v2 if: github.event_name == 'issue_comment' @@ -104,7 +104,7 @@ jobs: steps: - uses: actions/setup-go@v2 with: - go-version: 1.16.4 + go-version: 1.17.0 - name: install runsim run: | export GO111MODULE="on" && go get github.com/cosmos/tools/cmd/runsim@v1.0.0 @@ -143,7 +143,7 @@ jobs: echo "::set-output name=repo_name::${{ fromJson(steps.request.outputs.data).head.repo.full_name }}" - uses: actions/setup-go@v2 with: - go-version: 1.16.4 + go-version: 1.17.0 - name: Checkout Comment PR Branch uses: actions/checkout@v2 if: github.event_name == 'issue_comment' @@ -206,7 +206,7 @@ jobs: echo "::set-output name=repo_name::${{ fromJson(steps.request.outputs.data).head.repo.full_name }}" - uses: actions/setup-go@v2 with: - go-version: 1.16.4 + go-version: 1.17.0 - name: Checkout Comment PR Branch uses: actions/checkout@v2 if: github.event_name == 'issue_comment' @@ -268,7 +268,7 @@ jobs: echo "::set-output name=repo_name::${{ fromJson(steps.request.outputs.data).head.repo.full_name }}" - uses: actions/setup-go@v2 with: - go-version: 1.16.4 + go-version: 1.17.0 - name: Checkout Comment PR Branch uses: actions/checkout@v2 if: github.event_name == 'issue_comment' diff --git a/.github/workflows/buildwin.yml b/.github/workflows/buildwin.yml index f7258597c..d4f147817 100644 --- a/.github/workflows/buildwin.yml +++ b/.github/workflows/buildwin.yml @@ -14,7 +14,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.16.4 + go-version: 1.17.0 - name: Normal check out code uses: actions/checkout@v2 with: diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index d8b19a809..3b8f7ea62 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -15,7 +15,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.16.4 + go-version: 1.17.0 - uses: actions/checkout@v2 with: submodules: true diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 4a68b4f57..255a8bab0 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -15,7 +15,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.16.4 + go-version: 1.17.0 - name: release dry run run: make release-dry-run - name: setup release environment diff --git a/CHANGELOG.md b/CHANGELOG.md index 8172cfedd..93a571e76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +*Septeber 2, 2021* + +## v3.1.0 +This version is identical to the v3.0.1, but updated the Cosmos SDK dependency to 0.44.0 which contains a consensus-breaking security patch. +*WARNING*: DO NOT upgrade to this binary yet; instructions are going to be published later +on https://crypto.org/docs/getting-started/upgrade_guide.html . + *August 26, 2021* ## v3.0.1 diff --git a/Makefile b/Makefile index 4331ae722..ea1158ea6 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ PACKAGES=$(shell go list ./... | grep -v '/simulation') PACKAGE_NAME:=github.com/crypto-org-chain/chain-main -GOLANG_CROSS_VERSION = v1.16.3 +GOLANG_CROSS_VERSION = v1.17.0 VERSION := $(shell echo $(shell git describe --tags 2>/dev/null ) | sed 's/^v//') diff --git a/go.mod b/go.mod index a6975ec62..c68ec1d4a 100644 --- a/go.mod +++ b/go.mod @@ -1,10 +1,10 @@ module github.com/crypto-org-chain/chain-main/v3 -go 1.16 +go 1.17 require ( github.com/confluentinc/bincover v0.1.0 - github.com/cosmos/cosmos-sdk v0.43.0 + github.com/cosmos/cosmos-sdk v0.44.0 github.com/cosmos/ibc-go v1.0.1 github.com/cosmos/ledger-go v0.9.2 // indirect github.com/gogo/protobuf v1.3.3 @@ -26,6 +26,103 @@ require ( ) +require ( + filippo.io/edwards25519 v1.0.0-beta.2 // indirect + github.com/99designs/keyring v1.1.6 // indirect + github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d // indirect + github.com/DataDog/zstd v1.4.5 // indirect + github.com/Workiva/go-datastructures v1.0.52 // indirect + github.com/armon/go-metrics v0.3.9 // indirect + github.com/beorn7/perks v1.0.1 // indirect + github.com/bgentry/speakeasy v0.1.0 // indirect + github.com/btcsuite/btcd v0.22.0-beta // indirect + github.com/cespare/xxhash v1.1.0 // indirect + github.com/cespare/xxhash/v2 v2.1.1 // indirect + github.com/coinbase/rosetta-sdk-go v0.6.10 // indirect + github.com/confio/ics23/go v0.6.6 // indirect + github.com/cosmos/go-bip39 v1.0.0 // indirect + github.com/cosmos/iavl v0.16.0 // indirect + github.com/cosmos/ledger-cosmos-go v0.11.1 // indirect + github.com/danieljoos/wincred v1.0.2 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect + github.com/dgraph-io/badger/v2 v2.2007.2 // indirect + github.com/dgraph-io/ristretto v0.0.3 // indirect + github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect + github.com/dustin/go-humanize v1.0.0 // indirect + github.com/dvsekhvalnov/jose2go v0.0.0-20200901110807-248326c1351b // indirect + github.com/enigmampc/btcutil v1.0.3-0.20200723161021-e2fb6adb2a25 // indirect + github.com/felixge/httpsnoop v1.0.1 // indirect + github.com/fsnotify/fsnotify v1.4.9 // indirect + github.com/go-kit/kit v0.10.0 // indirect + github.com/go-logfmt/logfmt v0.5.0 // indirect + github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect + github.com/gogo/gateway v1.1.0 // indirect + github.com/golang/snappy v0.0.3-0.20201103224600-674baa8c7fc3 // indirect + github.com/google/btree v1.0.0 // indirect + github.com/google/orderedcode v0.0.1 // indirect + github.com/gorilla/handlers v1.5.1 // indirect + github.com/gorilla/websocket v1.4.2 // indirect + github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect + github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect + github.com/gtank/merlin v0.1.1 // indirect + github.com/gtank/ristretto255 v0.1.2 // indirect + github.com/hashicorp/go-immutable-radix v1.0.0 // indirect + github.com/hashicorp/golang-lru v0.5.4 // indirect + github.com/hashicorp/hcl v1.0.0 // indirect + github.com/hdevalence/ed25519consensus v0.0.0-20210204194344-59a8610d2b87 // indirect + github.com/improbable-eng/grpc-web v0.14.0 // indirect + github.com/inconshreveable/mousetrap v1.0.0 // indirect + github.com/jmhodges/levigo v1.0.0 // indirect + github.com/keybase/go-keychain v0.0.0-20190712205309-48d3d31d256d // indirect + github.com/klauspost/compress v1.10.3 // indirect + github.com/libp2p/go-buffer-pool v0.0.2 // indirect + github.com/magiconair/properties v1.8.5 // indirect + github.com/mattn/go-isatty v0.0.13 // indirect + github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect + github.com/mimoo/StrobeGo v0.0.0-20181016162300-f8f6d4d2b643 // indirect + github.com/minio/highwayhash v1.0.1 // indirect + github.com/mitchellh/mapstructure v1.4.1 // indirect + github.com/mtibben/percent v0.2.1 // indirect + github.com/pelletier/go-toml v1.9.3 // indirect + github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 // indirect + github.com/pkg/errors v0.9.1 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/prometheus/client_golang v1.11.0 // indirect + github.com/prometheus/client_model v0.2.0 // indirect + github.com/prometheus/common v0.29.0 // indirect + github.com/prometheus/procfs v0.6.0 // indirect + github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0 // indirect + github.com/regen-network/cosmos-proto v0.3.1 // indirect + github.com/rs/cors v1.7.0 // indirect + github.com/rs/zerolog v1.23.0 // indirect + github.com/sasha-s/go-deadlock v0.2.1-0.20190427202633-1595213edefa // indirect + github.com/spf13/afero v1.6.0 // indirect + github.com/spf13/jwalterweatherman v1.1.0 // indirect + github.com/spf13/viper v1.8.0 // indirect + github.com/subosito/gotenv v1.2.0 // indirect + github.com/syndtr/goleveldb v1.0.1-0.20200815110645-5c35d600f0ca // indirect + github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c // indirect + github.com/tendermint/btcd v0.1.1 // indirect + github.com/tendermint/crypto v0.0.0-20191022145703-50d29ede1e15 // indirect + github.com/tendermint/go-amino v0.16.0 // indirect + github.com/tidwall/match v1.0.3 // indirect + github.com/tidwall/pretty v1.1.0 // indirect + github.com/zondax/hid v0.9.0 // indirect + github.com/zondax/ledger-go v0.12.1 // indirect + go.etcd.io/bbolt v1.3.5 // indirect + golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad // indirect + golang.org/x/net v0.0.0-20210525063256-abc453219eb5 // indirect + golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40 // indirect + golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect + golang.org/x/text v0.3.6 // indirect + google.golang.org/protobuf v1.26.0 // indirect + gopkg.in/ini.v1 v1.62.0 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect + nhooyr.io/websocket v1.8.6 // indirect +) + // TODO: https://github.com/cosmos/cosmos-sdk/pull/8388/files#r560319528 replace google.golang.org/grpc => google.golang.org/grpc v1.33.2 @@ -38,4 +135,7 @@ replace github.com/99designs/keyring => github.com/crypto-org-chain/keyring v1.1 replace github.com/dgrijalva/jwt-go => github.com/dgrijalva/jwt-go/v4 v4.0.0-preview1 +// forcing versions in transitive deps replace github.com/tendermint/tendermint => github.com/tendermint/tendermint v0.34.12 + +replace github.com/cosmos/cosmos-sdk => github.com/cosmos/cosmos-sdk v0.44.0 diff --git a/go.sum b/go.sum index 46e963272..4d8f20936 100644 --- a/go.sum +++ b/go.sum @@ -159,8 +159,8 @@ github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7 github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= -github.com/cosmos/cosmos-sdk v0.43.0 h1:l2GXJMDVtJyHb35pDUCw+uyr6eZtBo8vt+7PSsq+Fjo= -github.com/cosmos/cosmos-sdk v0.43.0/go.mod h1:ctcrTEAhei9s8O3KSNvL0dxe+fVQGp07QyRb/7H9JYE= +github.com/cosmos/cosmos-sdk v0.44.0 h1:eOSjACNtTnThEJ62IsS+pMm3OIU6hgMVqrp4TZClLZo= +github.com/cosmos/cosmos-sdk v0.44.0/go.mod h1:orG0jzFJ2KsDfzLd/X0JSOMzF4Oxc/BQz2GkcYF4gRE= github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y= github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY= github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw= diff --git a/gomod2nix.toml b/gomod2nix.toml index b4ea74413..f3e5701e8 100644 --- a/gomod2nix.toml +++ b/gomod2nix.toml @@ -685,12 +685,12 @@ sha256 = "0nxbn0m7lr4dg0yrwnvlkfiyg3ndv8vdpssjx7b714nivpc6ar0y" ["github.com/cosmos/cosmos-sdk"] - sumVersion = "v0.43.0" + sumVersion = "v0.44.0" ["github.com/cosmos/cosmos-sdk".fetch] type = "git" url = "https://github.com/cosmos/cosmos-sdk" - rev = "3f8596c1955e40ef30e4abcd06f2237d132db3a9" - sha256 = "1fgi8xq4k7bislfchl8hz18iwf37ppkp5w471v5h4axq4xynpsmy" + rev = "ccc5245c3a1b2e5f1f584e9395fc571a1d19d989" + sha256 = "1vh48mwp8w21a3i71alwn56rlm8ip2na5mm7jpsj43d9d915phxp" ["github.com/cosmos/go-bip39"] sumVersion = "v1.0.0" diff --git a/integration_tests/test_sign_offline.py b/integration_tests/test_sign_offline.py index bbd159916..500607621 100644 --- a/integration_tests/test_sign_offline.py +++ b/integration_tests/test_sign_offline.py @@ -8,6 +8,7 @@ pytestmark = pytest.mark.normal +@pytest.mark.skip(reason="/txs API removed in 0.44") def test_sign_offline(cluster): """ check simple transfer tx success diff --git a/third_party/cosmos-sdk b/third_party/cosmos-sdk index 3f8596c19..ccc5245c3 160000 --- a/third_party/cosmos-sdk +++ b/third_party/cosmos-sdk @@ -1 +1 @@ -Subproject commit 3f8596c1955e40ef30e4abcd06f2237d132db3a9 +Subproject commit ccc5245c3a1b2e5f1f584e9395fc571a1d19d989