启动链码时报错如下:
root@95a911a49341:/opt/gopath/src/chaincode/chaincode002# CORE_PEER_ADDRESS=peer:7051 CORE_CHAINCODE_ID_NAME=mycc:0 ./chaincode002
2018-05-28 01:15:24.369 UTC [shim] SetupChaincodeLogging -> INFO 001 Chaincode log level not provided; defaulting to: INFO
2018-05-28 01:15:24.369 UTC [shim] SetupChaincodeLogging -> INFO 002 Chaincode (build level: ) starting up ...
2018-05-28 01:15:24.374 UTC [shim] func1 -> ERRO 003 Received error from server, ending chaincode stream: rpc error: code = Unimplemented desc = unknown service protos.ChaincodeSupport
start error
主要原因是版本问题v1.1.0,7051端口应该使用在v1.0.0
所以在v1.1.0正确的启动chaincode命令为:
CORE_PEER_ADDRESS=peer:7052 CORE_CHAINCODE_ID_NAME=mycc:0 ./chaincode002
扫描二维码关注公众号,回复:
1063318 查看本文章
![](/qrcode.jpg)