Hyperledger Fabric链代码调用返回错误

时间:2018-10-01 06:00:22

标签: hyperledger-fabric blockchain

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"]}'

错误:调用期间认可失败。链码结果:

1 个答案:

答案 0 :(得分:0)

在scripts / utils.sh第297行上,将sleep 20添加到chaincodeInvoke函数的开头