【问题标题】:cannot create transaction block : cannot define a new channel in configtxgen无法创建事务块:无法在 configtxgen 中定义新通道
【发布时间】:2019-05-20 16:34:33
【问题描述】:

这个问题已经被问过source,因为这个问题已经有 10 个月的历史了,而且由于织物上有更新的版本,我正在重新发布这个问题。

对于以下 YAML 文件

Organizations:
  - &Smartforce
    Name: SmartforceMSP
    ID: SmartforceMSP
    MSPDir: /home/falcon/dev-iq-smartforce/crypto-config/ordererOrganizations/smartforce.com/msp

  - &BusinessPartner1
    Name: FalconMSP
    ID: FalconMSP
    MSPDir: /home/falcon/dev-iq-smartforce/crypto-config/peerOrganizations/falcon.com/msp

    AnchorPeers:
      - Host: localhost
        Port: 7051

  - &BusinessPartner2
    Name: FrostMSP
    ID: FrostMSP
    MSPDir: /home/falcon/dev-iq-smartforce/crypto-config/peerOrganizations/frost.com/msp
    AnchorPeers:
      - Host: localhost
        Port: 8051


# Configuration for the Orderer
Orderer: &OrdererDefaults  #SampleInsecureSolo

  OrdererType: solo

  Addresses:
    - localhost:7050

  # Batch Timeout: The amount of time to wait before creating a batch
  BatchTimeout: 2s

  # Batch Size: Controls the number of messages batched into a block
  BatchSize:
    MaxMessageCount: 10
    AbsoluteMaxBytes: 98 MB
    PreferredMaxBytes: 512 KB

Application: &ApplicationDefaults
      Organizations:

Channel: &ChannelDefaults

Profiles:

  TwoPartnerGenesis:
      Orderer:
          <<: *OrdererDefaults
          Organizations:
              - *Smartforce

      Application:
            <<: *ApplicationDefaults
            Organizations:
                - <<: *BusinessPartner1
                - <<: *BusinessPartner2  

      Consortiums:
          TwoPartnerConsortium:
              Organizations:
                  - *BusinessPartner1
                  - *BusinessPartner2
  TwoOrgChannel:
    Consortium: TwoPartnerConsortium 
    Application:
        <<: *ApplicationDefaults
        Organizations:
           - <<: *BusinessPartner1
           - <<: *BusinessPartner2

以下文件的结果:

输入:

configtxgen -outputCreateChannelTx ./TwoOrgChannel.tx -profile TwoPartnerGenesis -channelID channel01

输出:

configtxgen -outputCreateChannelTx ./TwoOrgChannel.tx -profile TwoPartnerGenesis -channelID channel01
2018-12-20 12:30:29.818 IST [common/tools/configtxgen] main -> INFO 001 Loading configuration
2018-12-20 12:30:29.824 IST [common/tools/configtxgen] doOutputChannelCreateTx -> INFO 002 Generating new channel configtx
2018-12-20 12:30:29.824 IST [common/tools/configtxgen] main -> CRIT 003 Error on outputChannelCreateTx: config update generation failure: cannot define a new channel with no Consortium value

请任何人帮助我找出错误。 提前致谢。

【问题讨论】:

    标签: yaml hyperledger-fabric blockchain


    【解决方案1】:

    试试这个:

    configtxgen -outputCreateChannelTx ./TwoOrgChannel.tx -profile TwoOrgChannel -channelID channel01
    

    我认为您选择了错误的配置文件来创建渠道交易

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-09-25
      • 2019-03-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多