0

我正在使用 wsl2 在 Windows 10 机器上运行 ubuntu 20.04。我正在使用Minifabric 工具设置一个 hyperledger fabric 2.2 环境。我在工作目录的 spec.yaml 文件中指定了我的自定义网络的结构:

fabric:
cas:
- "ca1.university.com"
- "ca2.university1.com"
- "ca3.university2.com"
- "ca4.org.com"
- "ca5.org.com"
peers: 
- "peer1.university1.com"
- "peer2.university1.com"
- "peer3.university1.com"
- "peer4.university1.com"
- "peer5.university1.com"
- "peer6.university1.com"
- "peer7.university1.com"
- "peer8.university1.com"
- "peer9.university1.com"
- "peer1.university2.com"
- "peer2.university2.com"
- "peer3.university2.com"
- "peer4.university2.com"
- "peer5.university2.com"
- "peer6.university2.com"
- "peer7.university2.com"
- "peer8.university2.com"
- "peer1.organization_x.com"
- "peer2.organization_x.com"
- "peer3.organization_x.com"
- "peer1.organization_y.com"
- "peer2.organization_y.com"
- "peer3.organization_y.com"
- "peer1.organization_z.com"
- "peer2.organization_z.com"
- "peer3.organization_z.com"
orderers:
- "orderer1.university1.com"
- "orderer2.university1.com"
- "orderer3.university1.com"
- "orderer1.university2.com"
- "orderer2.university2.com"
- "orderer3.university2.com"
- "orderer1.organization_x.com"
- "orderer1.organization_y.com"
- "orderer1.organization_z.com"
settings:
  ca:
    FABRIC_LOGGING_SPEC: DEBUG
  peer:
    FABRIC_LOGGING_SPEC: DEBUG
  orderer:
    FABRIC_LOGGING_SPEC: DEBUG

我给出了指定默认组织“./minifab up -o university1.com”的命令并收到以下错误: 在此处输入图像描述 有人可以解释为什么我收到此错误吗?TIA。

4

1 回答 1

1

它可能只是复制和粘贴的产物,但配置文件中列表的语法看起来不正确......我建议让 yamlint 运行它并听取它的建议。

于 2020-10-06T10:36:45.093 回答