报错:
[client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: chaincode error (status: 500, message: {"code":303, "reason": "abnormal account"})
at new createStatusError (/Users/qin/go/src/github.com/hyperledger/caliper/node_modules/grpc/src/client.js:64:15)
at /Users/qin/go/src/github.com/hyperledger/caliper/node_modules/grpc/src/client.js:583:15
解决方案
打开caliper/network/fabricV1.0/2org1peergoleveldb/docker-compose.yaml
在peer节点中设置CORE_CHAINCODE_EXECUTETIMEOUT=120s
或
打开caliper/src/adapters/fabric/e2eUtils.js
async function instantiateLegacy(chaincode, endorsement_policy, upgrade){
Client.setConfigSetting('request-timeout', 600000);
修改600000为1200000
https://github.com/hyperledger/caliper/issues/143可参见:
和https://github.com/hyperledger/caliper/issues/137中aklenik 的回答