Skip to content

Commit 3c7814d

Browse files
authored
Merge pull request #2 from sei-protocol/tony-chen-attempt-to-fix-grpc-version
not use insecure
2 parents 51b63c5 + c3a97ef commit 3c7814d

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

abci/client/grpc_client.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"time"
1010

1111
"google.golang.org/grpc"
12-
"google.golang.org/grpc/credentials/insecure"
1312

1413
"github.com/tendermint/tendermint/abci/types"
1514
"github.com/tendermint/tendermint/libs/log"
@@ -58,7 +57,7 @@ func (cli *grpcClient) OnStart(ctx context.Context) error {
5857
RETRY_LOOP:
5958
for {
6059
conn, err := grpc.Dial(cli.addr,
61-
grpc.WithTransportCredentials(insecure.NewCredentials()),
60+
grpc.WithInsecure(),
6261
grpc.WithContextDialer(dialerFunc),
6362
)
6463
if err != nil {

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ require (
3232
golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4
3333
golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2
3434
golang.org/x/sync v0.0.0-20220513210516-0976fa681c29
35-
google.golang.org/grpc v1.47.0
35+
google.golang.org/grpc v1.46.2
3636
pgregory.net/rapid v0.4.7
3737
)
3838

go.sum

+1-2
Original file line numberDiff line numberDiff line change
@@ -1795,9 +1795,8 @@ google.golang.org/grpc v1.43.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ5
17951795
google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU=
17961796
google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ=
17971797
google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk=
1798+
google.golang.org/grpc v1.46.2 h1:u+MLGgVf7vRdjEYZ8wDFhAVNmhkbJ5hmrA1LMWK1CAQ=
17981799
google.golang.org/grpc v1.46.2/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk=
1799-
google.golang.org/grpc v1.47.0 h1:9n77onPX5F3qfFCqjy9dhn8PbNQsIKeVU04J9G7umt8=
1800-
google.golang.org/grpc v1.47.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk=
18011800
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw=
18021801
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
18031802
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=

privval/grpc/util.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
"google.golang.org/grpc"
1414
"google.golang.org/grpc/credentials"
15-
"google.golang.org/grpc/credentials/insecure"
15+
1616
"google.golang.org/grpc/keepalive"
1717

1818
"github.com/tendermint/tendermint/config"
@@ -100,7 +100,7 @@ func DialRemoteSigner(
100100
transportSecurity = GenerateTLS(cfg.ClientCertificateFile(),
101101
cfg.ClientKeyFile(), cfg.RootCAFile(), logger)
102102
} else {
103-
transportSecurity = grpc.WithTransportCredentials(insecure.NewCredentials())
103+
transportSecurity = grpc.WithInsecure()
104104
logger.Info("Using an insecure gRPC connection!")
105105
}
106106

0 commit comments

Comments
 (0)