【问题标题】:Hyperledger, create a channel using the configtxgen CLI toolHyperledger,使用 configtxgen CLI 工具创建通道
【发布时间】:2021-09-25 11:23:45
【问题描述】:

我正在关注https://hyperledger-fabric.readthedocs.io/en/release-2.1/create_channel/create_channel.html 教程。
首先,我在我的版本中的 configtx.yaml 的配置文件中没有找到 TwoOrgsChannel,所以我将此部分添加到配置文件中,并使其正常工作并成功为 channel1 创建通道创建事务。
但是之后的命令将使用对等通道创建创建通道,返回一个我搜索但没有得到任何类似帖子的错误,即:
Endorser 和 orderer 连接已初始化 错误:出现意外状态:BAD_REQUEST -- 不允许创建通道请求,因为未定义排序系统通道

我添加到个人资料的部分是:

TwoOrgsChannel:
    Consortium: SampleConsortium
    <<: *ChannelDefaults
    Application:
        <<: *ApplicationDefaults
        Organizations:
            - *Org1
            - *Org2
        Capabilities:
            <<: *ApplicationCapabilities 

【问题讨论】:

    标签: hyperledger-fabric config blockchain hyperledger channels


    【解决方案1】:

    您是否在 configtx.yaml 中创建了 Orderer 配置文件?

    订单需要有序系统通道,通道初始化需要对等方。

    请参阅此链接以获取 configtx.yaml

    https://medium.com/@msakhilvinayak/understanding-configurations-in-hyperledger-fabric-ff3f5c23625a

    【讨论】:

      猜你喜欢
      • 2018-08-24
      • 2019-07-26
      • 2023-01-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-05-21
      • 2018-06-19
      • 2019-04-05
      相关资源
      最近更新 更多