Skip to content

Commit

Permalink
Merge pull request #5891 from oasisprotocol/kostko/feature/cometbft-0…
Browse files Browse the repository at this point in the history
….37.11-oasis1
  • Loading branch information
kostko authored Oct 11, 2024
2 parents 2f4459f + 2c9bba9 commit 29831d4
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 95 deletions.
1 change: 1 addition & 0 deletions .changelog/5891.internal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
go: Bump CometBFT to 0.37.11-oasis1
3 changes: 1 addition & 2 deletions go/common/grpc/auth/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ func testAuth(t *testing.T, testCase *testCase) {
}()

// Connect to gRPC server.
conn, err := grpc.DialContext(
ctx,
conn, err := grpc.NewClient(
fmt.Sprintf("%s:%d", testCase.serverConfig.Name, testCase.serverConfig.Port),
grpc.WithTransportCredentials(insecure.NewCredentials()),
grpc.WithDefaultCallOptions(grpc.ForceCodec(&commonGrpc.CBORCodec{})),
Expand Down
2 changes: 1 addition & 1 deletion go/common/grpc/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ func Dial(target string, opts ...grpc.DialOption) (*grpc.ClientConn, error) {
grpc.WithChainStreamInterceptor(logAdapter.streamClientLogger, clientStreamErrorMapper),
}
dialOpts = append(dialOpts, opts...)
return grpc.Dial(target, dialOpts...)
return grpc.NewClient(target, dialOpts...)
}

// IsSocketAddress checks if the gRPC address is a socket address.
Expand Down
3 changes: 1 addition & 2 deletions go/common/grpc/wrapper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,7 @@ func TestGrpcWrapper(t *testing.T) {
require.NoErrorf(err, "Failed to start the gRPC server: %v", err)

// Connect to the gRPC server without a client certificate.
conn, err := grpc.DialContext(
ctx,
conn, err := grpc.NewClient(
fmt.Sprintf("%s:%d", host, port),
grpc.WithTransportCredentials(insecure.NewCredentials()),
grpc.WithDefaultCallOptions(grpc.ForceCodec(&CBORCodec{})),
Expand Down
39 changes: 19 additions & 20 deletions go/go.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module github.com/oasisprotocol/oasis-core/go

replace (
github.com/cometbft/cometbft => github.com/oasisprotocol/cometbft v0.37.9-oasis1
github.com/cometbft/cometbft => github.com/oasisprotocol/cometbft v0.37.11-oasis1

// v1.5.0 has broken uint parsing, use my commit with fixes instead until
// the maintainers merge my PR: https://github.com/spf13/cast/pull/144
Expand All @@ -17,8 +17,8 @@ require (
github.com/a8m/envsubst v1.4.2
github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce
github.com/cenkalti/backoff/v4 v4.2.1
github.com/cometbft/cometbft v0.37.9
github.com/cometbft/cometbft-db v0.7.0
github.com/cometbft/cometbft v0.37.11
github.com/cometbft/cometbft-db v0.9.5
github.com/cosmos/gogoproto v1.7.0
github.com/dgraph-io/badger/v4 v4.3.1
github.com/eapache/channels v1.1.0
Expand All @@ -28,7 +28,7 @@ require (
github.com/goki/go-difflib v1.2.1
github.com/golang/protobuf v1.5.4
github.com/golang/snappy v0.0.4
github.com/google/btree v1.1.2
github.com/google/btree v1.1.3
github.com/hashicorp/go-hclog v1.5.0
github.com/hashicorp/go-plugin v1.4.6
github.com/hpcloud/tail v1.0.0
Expand All @@ -41,14 +41,14 @@ require (
github.com/oasisprotocol/deoxysii v0.0.0-20220228165953-2091330c22b7
github.com/olekukonko/tablewriter v0.0.5
github.com/powerman/rpc-codec v1.2.2
github.com/prometheus/client_golang v1.20.0
github.com/prometheus/common v0.55.0
github.com/prometheus/client_golang v1.20.4
github.com/prometheus/common v0.59.1
github.com/prometheus/procfs v0.15.1
github.com/seccomp/libseccomp-golang v0.10.0
github.com/spf13/cast v1.6.0
github.com/spf13/cobra v1.8.1
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.18.2
github.com/spf13/viper v1.19.0
github.com/stretchr/testify v1.9.0
github.com/thepudds/fzgo v0.2.2
github.com/tidwall/btree v1.6.0
Expand All @@ -57,8 +57,8 @@ require (
golang.org/x/crypto v0.27.0
golang.org/x/exp v0.0.0-20240808152545-0cdaa3abc0fa
golang.org/x/net v0.29.0
google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80
google.golang.org/grpc v1.62.1
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1
google.golang.org/grpc v1.67.0
google.golang.org/grpc/security/advancedtls v0.0.0-20221004221323-12db695f1648
google.golang.org/protobuf v1.34.2
gopkg.in/yaml.v3 v3.0.1
Expand All @@ -68,13 +68,12 @@ require (
github.com/benbjohnson/clock v1.3.5 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/btcsuite/btcd/btcec/v2 v2.3.3 // indirect
github.com/btcsuite/btcd/btcutil v1.1.5 // indirect
github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0 // indirect
github.com/cespare/xxhash v1.1.0 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/containerd/cgroups v1.1.0 // indirect
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
github.com/creachadair/taskgroup v0.3.2 // indirect
github.com/creachadair/taskgroup v0.10.0 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/davidlazar/go-crypto v0.0.0-20200604182044-b73af7476f6c // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
Expand All @@ -89,8 +88,8 @@ require (
github.com/flynn/noise v1.1.0 // indirect
github.com/francoispqt/gojay v1.2.13 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/go-kit/kit v0.12.0 // indirect
github.com/go-logfmt/logfmt v0.5.1 // indirect
github.com/go-kit/kit v0.13.0 // indirect
github.com/go-logfmt/logfmt v0.6.0 // indirect
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
github.com/godbus/dbus/v5 v5.1.0 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
Expand Down Expand Up @@ -119,7 +118,7 @@ require (
github.com/klauspost/compress v1.17.10 // indirect
github.com/klauspost/cpuid/v2 v2.2.8 // indirect
github.com/koron/go-ssdp v0.0.4 // indirect
github.com/lib/pq v1.10.7 // indirect
github.com/lib/pq v1.10.9 // indirect
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
github.com/libp2p/go-flow-metrics v0.1.0 // indirect
github.com/libp2p/go-libp2p-asn-util v0.4.1 // indirect
Expand All @@ -128,6 +127,7 @@ require (
github.com/libp2p/go-netroute v0.2.1 // indirect
github.com/libp2p/go-reuseport v0.4.0 // indirect
github.com/libp2p/go-yamux/v4 v4.0.1 // indirect
github.com/linxGnu/grocksdb v1.9.3 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/marten-seemann/tcp v0.0.0-20210406111302-dfbc87cc63fd // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
Expand All @@ -138,7 +138,7 @@ require (
github.com/mikioh/tcpinfo v0.0.0-20190314235526-30a79bb1804b // indirect
github.com/mikioh/tcpopt v0.0.0-20190314235656-172688c1accc // indirect
github.com/mimoo/StrobeGo v0.0.0-20210601165009-122bf33a46e0 // indirect
github.com/minio/highwayhash v1.0.2 // indirect
github.com/minio/highwayhash v1.0.3 // indirect
github.com/minio/sha256-simd v1.0.1 // indirect
github.com/mitchellh/go-testing-interface v0.0.0-20171004221916-a61a99592b77 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
Expand All @@ -160,8 +160,8 @@ require (
github.com/onsi/ginkgo/v2 v2.20.0 // indirect
github.com/opencontainers/runtime-spec v1.2.0 // indirect
github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 // indirect
github.com/pelletier/go-toml/v2 v2.1.0 // indirect
github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 // indirect
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
github.com/petermattis/goid v0.0.0-20240813172612-4fcff4a6cae7 // indirect
github.com/pion/datachannel v1.5.8 // indirect
github.com/pion/dtls/v2 v2.2.12 // indirect
github.com/pion/ice/v2 v2.3.34 // indirect
Expand Down Expand Up @@ -189,16 +189,15 @@ require (
github.com/rs/cors v1.8.2 // indirect
github.com/sagikazarmark/locafero v0.4.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/sasha-s/go-deadlock v0.3.1 // indirect
github.com/sasha-s/go-deadlock v0.3.5 // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/spf13/afero v1.11.0 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect
github.com/tecbot/gorocksdb v0.0.0-20191217155057-f0fad39f321c // indirect
github.com/wlynxg/anet v0.0.4 // indirect
github.com/x448/float16 v0.8.4 // indirect
go.etcd.io/bbolt v1.3.6 // indirect
go.etcd.io/bbolt v1.3.11 // indirect
go.opencensus.io v0.24.0 // indirect
go.uber.org/dig v1.18.0 // indirect
go.uber.org/fx v1.22.2 // indirect
Expand Down
Loading

0 comments on commit 29831d4

Please sign in to comment.