【问题标题】:Hyperledger fabric customising orderers for channelHyperledger Fabric 为渠道定制订购者
【发布时间】:2021-06-29 10:00:40
【问题描述】:

我有现有的超级账本结构设置,包含 2 个组织、5 个订购者和 1 个渠道,我想创建一个新渠道,并且只想将 3 个订购者(共 5 个)作为新渠道的一部分,因为我已经提到通道配置部分的订购者详细信息如下:

NewChannel:
    Consortium: SampleConsortium
    <<: *ChannelDefaults
    Capabilities:
        <<: *ChannelCapabilities
    Orderer:
        <<: *OrdererDefaults
        OrdererType: etcdraft
        EtcdRaft:
            Consenters:
            - Host: orderer3.example.com
              Port: 13050
              ClientTLSCert: ../organizations/ordererOrganizations/example.com/orderers/orderer3.example.com/tls/server.crt
              ServerTLSCert: ../organizations/ordererOrganizations/example.com/orderers/orderer3.example.com/tls/server.crt
            - Host: orderer4.example.com
              Port: 14050
              ClientTLSCert: ../organizations/ordererOrganizations/example.com/orderers/orderer4.example.com/tls/server.crt
              ServerTLSCert: ../organizations/ordererOrganizations/example.com/orderers/orderer4.example.com/tls/server.crt
            - Host: orderer5.example.com
              Port: 15050
              ClientTLSCert: ../organizations/ordererOrganizations/example.com/orderers/orderer5.example.com/tls/server.crt
              ServerTLSCert: ../organizations/ordererOrganizations/example.com/orderers/orderer5.example.com/tls/server.crt
        Addresses:
            - orderer3.example.com:13050
            - orderer4.example.com:14050
            - orderer5.example.com:15050
        Organizations:
            - *OrdererOrg
        Capabilities:
            <<: *OrdererCapabilities
    Application:
        <<: *ApplicationDefaults
        Organizations:
            - *Org1
            - *Org2
        Capabilities:
            <<: *ApplicationCapabilities

我使用-channelCreateTxBaseProfile 参数创建了没有任何问题的通道事务文件,但是在创建通道时出现以下错误:

错误:出现意外状态:BAD_REQUEST -- 验证通道错误 新频道“channel11”的创建事务,不能 成功将更新应用到模板配置:授权错误 更新:验证 DeltaSet 时出错:[Value] 的策略 /Channel/OrdererAddresses 不满足:隐式策略评估 失败 - 满足 0 个子策略,但该策略需要 1 个 要满足的“管理员”子策略

我无法确定政策的确切问题,任何人都可以就该问题以及如何解决它提出建议。

【问题讨论】:

  • 我有一个问题,如果你使用-channelCreateTxBaseProfile,它会创建一个不安全的单通道发送,我认为你应该使用-profilenewchanel
  • 我使用-channelCreateTxBaseProfile 来指定orderer 系统通道配置文件以及-profile

标签: hyperledger-fabric hyperledger


【解决方案1】:

尝试使用 orderer admin msp 而不是 peer admin msp

当你更新频道配置时,像这样设置环境:

export CORE_PEER_LOCALMSPID="OrdererMSP"
export CORE_PEER_TLS_ROOTCERT_FILE=${PROJECT_PATH}/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
export CORE_PEER_MSPCONFIGPATH=${PROJECT_PATH}/crypto-config/ordererOrganizations/example.com/users/Admin@example.com/msp
export CORE_PEER_ADDRESS=peer0.org1.example.com:7051

【讨论】:

  • 即使配置了 orderer admin msp 仍然得到同样的错误。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-09-27
  • 2022-10-07
相关资源
最近更新 更多