Hyperledger fabric 为什么在dev模式下的chaincode在抛出Unimplemented desc=unknown service protos.ChaincodeSupport时无法连接到对等方

Hyperledger fabric 为什么在dev模式下的chaincode在抛出Unimplemented desc=unknown service protos.ChaincodeSupport时无法连接到对等方,hyperledger-fabric,grpc,Hyperledger Fabric,Grpc,v1.1.0-preview之前的结构代码是可以的,但是 我下载了fabric发行版。我用dev模式启动程序,而不是docker模式。 订购方、对等方、示例01联合配置如下: 然后,订购方、对等方可以正常启动,但example01无法启动,似乎grpc无法连接成功 我考虑链表中的关键代码。去,这个方法聊天失败,它使用ChanoCudiSHIM.PROTO GRPC服务,它失败了。 // Interface that provides support to chaincode execut

v1.1.0-preview之前的结构代码是可以的,但是 我下载了fabric发行版。我用dev模式启动程序,而不是docker模式。 订购方、对等方、示例01联合配置如下:

然后,订购方、对等方可以正常启动,但example01无法启动,似乎grpc无法连接成功

我考虑链表中的关键代码。去,这个方法聊天失败,它使用ChanoCudiSHIM.PROTO GRPC服务,它失败了。

// Interface that provides support to chaincode execution. ChaincodeContext
// provides the context necessary for the server to respond appropriately.
service ChaincodeSupport {

    rpc Register(stream ChaincodeMessage) returns (stream ChaincodeMessage) {}


}

那么,为什么它抛出
Unimplemented desc=unknown service protos.ChaincodeSupport

您使用了错误的端口呢。在v1.1中,我们切换到使用端口7052。 在v1.0中是7051

// Interface that provides support to chaincode execution. ChaincodeContext
// provides the context necessary for the server to respond appropriately.
service ChaincodeSupport {

    rpc Register(stream ChaincodeMessage) returns (stream ChaincodeMessage) {}


}