我正在使用 Vagrant 环境。我设法启动对等点,我的链码已成功注册,但是当我尝试部署时,我得到以下信息
vagrant@hyperledger-devenv:v0.2.1-82e72f4:~$ CORE_PEER_ADDRESS=172.17.0.2:7051 peer chaincode deploy -n mytcc -c '{"Args": ["init", "a","100", "b ", "200"]}' - p github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02 错误:错误认可链码:rpc 错误:code = 12 desc = unknown service protos.Endorser
我正在使用以下 docker-compose.yml 文件来启动 fabric-peer
vp0:
image: hyperledger/fabric-peer
environment:
- CORE_PEER_ID=vp0
- CORE_PEER_ADDRESSAUTODETECT=true
- CORE_VM_ENDPOINT=http://172.17.0.1:2375
- CORE_LOGGING_LEVEL=DEBUG
command: peer node start --peer-chaincodedev
以下是注册我的交易的命令,它成功了
CORE_CHAINCODE_ID_NAME=mytcc CORE_PEER_ADDRESS=172.17.0.2:7051 ./chaincode_example02
但是,以下命令失败
CORE_PEER_ADDRESS=172.17.0.2:7051 peer chaincode deploy -n mytcc -c '{"Args": ["init", "a","100", "b", "200"]}'
-p github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02
什么是protos.Endorser?谢谢!