hyperledger-fabric - 如何在多台主机上的 Hyperledger Fabric 上部署 .bna 文件
问题描述
我遵循了 Wahab https://medium.com/@wahabjawed/hyperledger-fabric-on-multiple-hosts-a33b08ef24f的 Hyperledger Fabric on Multiple Hosts 教程。现在,我正在尝试部署自己的 .bna 文件而不是链代码。任何人都可以帮助如何部署它。我无法安装卡。连接.json
{
"name": "fabric-network",
"x-type": "hlfv1",
"version": "1.0.0",
"peers": {
"peer0.org1.example.com": {
"url": "grpc://localhost:7051",
"eventUrl": "grpc://localhost:7053"
},
"peer1.org1.example.com": {
"url": "grpc://192.168.64.82:7051",
"eventUrl": "grpc://192.168.64.82:7053"
}
},
"certificateAuthorities": {
"ca.example.com": {
"url": "http://localhost:7054",
"caName": "ca.example.com"
}
},
"orderers": {
"orderer.example.com": {
"url": "grpc://localhost:7050"
}
},
"organizations": {
"Org1": {
"mspid": "Org1MSP",
"peers": [
"peer0.org1.example.com",
"peer1.org1.example.com"
],
"certificateAuthorities": [
"ca.example.com"
]
}
},
"channels": {
"mychannel": {
"orderers": [
"orderer.example.com"
],
"peers": {
"peer0.org1.example.com": {
"endorsingPeer": true,
"chaincodeQuery": true,
"eventSource": true
},
"peer1.org1.example.com": {
"endorsingPeer": true,
"chaincodeQuery": true,
"eventSource": true
}
}
}
},
"client": {
"organization": "Org1",
"connection": {
"timeout": {
"peer": {
"endorser": "300",
"eventHub": "300",
"eventReg": "300"
},
"orderer": "300"
}
}
}
}
解决方案
I suggest you to follow the official tutorial of Hyperledger Composer.
It is also explained how to configure the connection profile for the cards.
推荐阅读
- python - 拆分字符串值以在熊猫中创建两个新列
- java - Java反射设置每个方法
- node.js - 在 NodeJS 中实现无限长时间运行的服务
- macos - 如何使用 Homebrew 在 macOS Mojave(10.14) 上安装 Valgrind?
- search - 我们什么时候会看到 amp(或 amp-story)和 algolia 搜索集成,例如 amp-algolia-autocomplete?
- c - 乘法和二进制转换同时进行
- reactjs - 使用 SSR 时如何让 Helmet 插入标题和元数据
- c# - 在 c# wpf 中将选项卡分隔到差异类
- macos - 如何在 C/C++ 或 Objective C 中查询特定文件夹是否共享或枚举从 osx 上的本地计算机共享的文件夹
- r - shinyFiles 库不适用于“read.csv”