Skip to content

Commit 589b4d6

Browse files
committed
Fix TLS gRPC connection from peer to ordering service
The dial options was initialized with "no TLS" and it conflicts when TLS is enabled. Removing this from the starting slice should fix the problem. Change-Id: Ic6cfa185737e565b45d6be4418f95cfce0e548d0 Signed-off-by: Yacov Manevich <[email protected]>
1 parent 3295920 commit 589b4d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/deliverservice/deliveryclient.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func NewDeliverService(gossip blocksprovider.GossipServiceAdapter, endpoints []s
109109
for _, idx := range indices {
110110
logger.Infof("Creating delivery service to get blocks from the ordering service, %s", endpoints[idx])
111111

112-
dialOpts := []grpc.DialOption{grpc.WithInsecure(), grpc.WithTimeout(3 * time.Second), grpc.WithBlock()}
112+
dialOpts := []grpc.DialOption{grpc.WithTimeout(3 * time.Second), grpc.WithBlock()}
113113

114114
if comm.TLSEnabled() {
115115
dialOpts = append(dialOpts, grpc.WithTransportCredentials(comm.InitTLSForPeer()))

0 commit comments

Comments
 (0)