我已经能够在不同的VM上设置一个带有两个对等体的单个组织的Fabric拓扑的Google VPC。我在一个单独的VM上有Hyperledger编写器,我可以用这个连接配置文件创建一张卡
{
"name": "hlfv1",
"x-type": "hlfv1",
"x-commitTimeout": 300,
"version": "1.0.0",
"client": {
"organization": "Org0",
"connection": {
"timeout": {
"peer": {
"endorser": "300",
"eventHub": "300",
"eventReg": "300"
},
"orderer": "300"
}
}
},
"channels": {
"OneOrgsChannel": {
"orderers": [
"ordererorg0"
],
"peers": {
"peer0.org0": {
"endorsingPeer": true,
"chaincodeQuery": true,
"ledgerQuery": true,
"eventSource": true
},
"peer1.org0": {
"endorsingPeer": true,
"chaincodeQuery": true,
"ledgerQuery": true,
"eventSource": true
}
}
}
},
"organizations": {
"Org0": {
"mspid": "Org0MSP",
"peers": [
"peer0.org0",
"peer1.org0"
],
"certificateAuthorities": [
"ca.org0"
]
}
},
"orderers": {
"ordererorg0": {
"url": "grpc://orderer0:7050"
}
},
"peers": {
"peer0.org0": {
"url": "grpc://peer0:7051",
"eventUrl": "grpc://peer0:7053"
},
"peer1.org0": {
"url": "grpc://peer1:7051",
"eventUrl": "grpc://peer1:7053"
}
},
"certificateAuthorities": {
"ca.org0": {
"url": "http://35.200.195.193:7054",
"caName": "ca.org0"
}
}
}
虽然,我正在使用composer卡导入,但我收到的错误是这样的:
无法导入身份错误:Client.createUser参数'选择 mspid'必需。
我的hfc-key-store中填充了结构同行和订购者使用的管理员证书。
我已经搜索了很多这个错误,但它似乎是抽象的。
答案 0 :(得分:0)
如果您仍然遇到此问题(或其他问题),请记住确保未在connection.json文件中输入错误。您总是在两个地方提到组织:client
部分和organizations
。确保这些名称相同。