-
Notifications
You must be signed in to change notification settings - Fork 105
Description
中文版为:CORE_PEER_ADDRESS=peer:7051 CORE_CHAINCODE_ID_NAME=mycc:0 ./sacc
英文版为:CORE_PEER_ADDRESS=peer:7052 CORE_CHAINCODE_ID_NAME=mycc:0 ./sacc
经个人实验,英文版命令正确,中文版报错如下:
2018-12-11 14:30:51.307 UTC [shim] setupChaincodeLogging -> INFO 001 Chaincode log level not provided; defaulting to: INF O
2018-12-11 14:30:51.308 UTC [shim] setupChaincodeLogging -> INFO 002 Chaincode (build level: ) starting up ...
2018-12-11 14:30:51.317 UTC [shim] chatWithPeer -> ERRO 003 Received error from server, ending chaincode stream: rpc erro r: code = Unimplemented desc = unknown service protos.ChaincodeSupport
receive failed
github.com/hyperledger/fabric/core/chaincode/shim.chatWithPeer
/opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/chaincode.go:362
github.com/hyperledger/fabric/core/chaincode/shim.Start
/opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/shim/chaincode.go:156
main.main
/opt/gopath/src/chaincode/sacc/sacc.go:94
runtime.main
/opt/go/src/runtime/proc.go:198
runtime.goexit
/opt/go/src/runtime/asm_amd64.s:2361
Error starting SimpleAsset chaincode: receive failed: rpc error: code = Unimplemented desc = unknown service protos.Chain