【问题标题】:Adding a new consortium definition to existing running network向现有正在运行的网络添加新的联盟定义
【发布时间】:2019-10-17 16:16:55
【问题描述】:

EYFN 允许将组织 Org3 添加到现有频道“mychannel”。我正在尝试通过在正在运行的网络中动态创建通道来将 Org1 和 Org3 添加到新通道。为此,我理解,有必要用 Org1 和 Org3 定义联盟。

在关注文档时,有人提到“实际上,联盟定义 X2 已添加到网络配置 NC4。我们在文档的其他地方讨论了此操作的确切机制。” (https://hyperledger-fabric.readthedocs.io/en/release-1.4/network/network.html)

是否可以通过更新网络配置来做到这一点?或任何替代方案?

【问题讨论】:

    标签: hyperledger-fabric hyperledger


    【解决方案1】:

    是的,有可能,而不是获取应用程序通道,您必须获取系统通道块并将新组织添加到现有联盟中,并在 configtx 中添加新配置文件并生成新事务文件并创建您的新频道

    【讨论】:

    • 当我尝试使用对等通道命令拉系统通道时,它给出错误 {FORBIDDEN}
    • `# peer channel fetch config ord_config_block.pb -o orderer.example.com:7050 -c byfn-sys-channel --tls --cafile /opt/gopath/src/github.com/ hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem 2019-06-14 15:56:21.222 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser 和 orderer 连接已初始化 2019-06-14 15:56:21.245 UTC [cli.common] readBlock -> INFO 002 Got status: &{FORBIDDEN} Error: can't read the block: &{FORBIDDEN}
    • 你好 kruparkar,请参考以下链接github.com/rohitadivi/Reconfigure-BYFN/blob/master/…
    • {FORBIDDEN}错误的原因是没有在cli中设置orderer环境。该链接非常有用,现在可以在运行的 byfn 网络中创建一个新频道。非常感谢@sudharsanan.k。
    • root@4dde55597899:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel list 2019-06-17 17:41:19.406 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Channels peers has joined: jkchannel mychannel
    猜你喜欢
    • 2020-01-16
    • 2018-08-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-05-22
    • 2021-05-09
    • 2019-03-30
    相关资源
    最近更新 更多