首页 > 解决方案 > 如何在多台主机上的 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"
            }
        }
    }
}

标签: hyperledger-fabric

解决方案


I suggest you to follow the official tutorial of Hyperledger Composer.

It is also explained how to configure the connection profile for the cards.


推荐阅读