我试图用超级账本卡尺测试超级账本结构样本“fabcar”网络。我根据官方文档编辑了 caliper 的“简单”基准 config.yaml 和 fabricConifg.json。尝试运行它时出现以下错误:
错误:[instantiate-chaincode.js]:无法实例化链码:错误:无法发送实例化提案或接收有效响应。响应为空或状态不是 200。
错误:[fabric.js]:Fabric 链码安装失败:错误:无法发送实例化提案或接收有效响应。响应为空或状态不是 200。
错误:[bench-flow.js]:错误:错误:无法发送实例化提案或接收有效响应。响应为空或状态不是 200。
信息:[demo.js]:[交易信息] - 提交:0 成功:0 失败:0 未完成:0 信息:[bench-flow.js]:
这是我的织物配置文件-
{
"fabric": {
"cryptodir": "/home/kingbayeed/hyperledger/fabric-samples/basic-network/crypto-config",
"network": {
"orderer": {
"url": "grpc://localhost:7050",
"mspid": "OrdererMSP",
"msp": "/home/kingbayeed/hyperledger/fabric-samples/basic-network/crypto-config/ordererOrganizations/example.com/msp/",
"server-hostname": "orderer.example.com",
"tls_cacerts": "/home/kingbayeed/hyperledger/fabric-samples/basic-network/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/ca.crt"
},
"org1": {
"name": "peerOrg1",
"mspid": "Org1MSP",
"msp": "/home/kingbayeed/hyperledger/fabric-samples/basic-network/crypto-config/peerOrganizations/org1.example.com/msp/",
"ca": {
"url": "http://localhost:7054",
"name": "ca-org1"
},
"peer1": {
"requests": "grpc://localhost:7051",
"events": "grpc://localhost:7053",
"server-hostname": "peer0.org1.example.com",
"tls_cacerts": "/home/kingbayeed/hyperledger/fabric-samples/basic-network/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt"
}
}
},
"channel": [
{
"name": "mychannel",
"deployed": true,
"config": "/home/kingbayeed/hyperledger/fabric-samples/basic-network/config/channel.tx",
"organizations": ["org1"]
}
],
"chaincodes": [
{"id": "fabcar", "path": "/home/kingbayeed/hyperledger/fabric-samples/chaincode/fabcar/go", "language":"golang", "version": "v1", "channel": "mychannel"}
],
"endorsement-policy": {
"identities": [
{
"role": {
"name": "member",
"mspId": "Org1MSP"
}
}
],
"policy": {"1-of":[{"signed-by":0}]}
},
"context": {
"invoke": "mychannel",
"query": "mychannel"
}
},
"info" : {
"Version": "1.0.0",
"Size": "1 Org with 1 Peer",
"Orderer": "Solo",
"Distribution": "Single Host"
}
}