root@27e4f0c27a0e:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C myChannel -n marbles -v 1.0 -c '{"Args":["init"]}' -P "OR ('Org1MSP.peer','Org2MSP.peer')"
2018-10-01 05:46:15.704 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc
2018-10-01 05:46:15.704 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc
root@27e4f0c27a0e:/opt/gopath/src/github.com/hyperledger/fabric/peer#
peer chaincode invoke -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C myChannel -n marbles -c '{"Args":["initMarble","marble1","blue","35","tom"]}'
错误:调用期间认可失败。链码结果:
答案 0 :(得分:0)
在scripts / utils.sh第297行上,将sleep 20
添加到chaincodeInvoke
函数的开头