安装链式代码后一切正常,输出日志信息如下:
root@jhj-VirtualBox:/opt/hyperledger/peer# peer chaincode install -n r_test_cc6 -v 1.0 -p /home/jhj/gopatr/fabric/examples/chaincode/go/chaincode_example02
2018-11-21 21:43:22.089 CST [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-11-21 21:43:22.089 CST [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identit
2018-11-21 21:43:22.089 CST [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc
2018-11-21 21:43:22.089 CST [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc
2018-11-21 21:43:22.089 CST [msp/identity] Sign -> DEBU 005 Sign: plaintext: 0A89070A5B08031A0B08FAC1D5DF03312E301A00
2018-11-21 21:43:22.090 CST [msp/identity] Sign -> DEBU 006 Sign: digest: AF6647185B6F55F19A4894233E189BFEE7057
2018-11-21 21:43:22.094 CST [chaincodeCmd] install -> DEBU 007 Installed remotely response:<status:200 pa
2018-11-21 21:43:22.094 CST [main] main -> INFO 008 Exiting.....
但是当我实例化Chaincode时,它是错误的,输出日志信息如下:
root@jhj-VirtualBox:/opt/hyperledger/peer# peer chaincode instantiate -o om:7050 -C roberttestchannel -n s":["init","a","100","b","200"]}' -P "OR ('Org1MSP.member','Org2MSP.member')"
2018-11-21 21:48:03.324 CST [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-11-21 21:48:03.325 CST [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identit
Error: Error getting broadcast client: Error connecting to om:7050 due to context deadline exceeded
谢谢!