【问题标题】:Connecting to Local version of Hyperledger Fabric through VSCode extension通过 VSCode 扩展连接到本地版本的 Hyperledger Fabric
【发布时间】:2019-08-20 21:52:03
【问题描述】:

按照此处的教程并尝试使用在我的本地系统上运行的基本网络运行本地版本的商业票据:

https://marketplace.visualstudio.com/items?itemName=IBMBlockchain.ibm-blockchain-platform

在安装了所有必需软件的 Mac OSX 10.14.6 上针对 VSC 1.37.1 运行。

文档清楚地说:

Connecting to another instance of Hyperledger Fabric

The extension allow you to connect to any Hyperledger Fabric instance and perform some operational tasks. The tasks available are: install, instantiate and registering and enrolling identities.

To connect to a Hyperledger Fabric instance on the Fabric Environments panel click the + button. This will ask you for JSON node files that describe how to connect to a Hyperledger Fabric Node i.e. peer, orderer, or certificate authority.

我的基本网络使用 ca、couchdb、orderer 和 peer0 的活动 docker 容器运行

问题——我如何连接到这个结构——我将哪些 JSON 文件添加到Fabric Environments 面板?

我对使用扩展的本地结构不感兴趣 -- 我想使用我的本地结构。

怎么样?谢谢。

【问题讨论】:

    标签: ibm-blockchain ibp-vscode-extension


    【解决方案1】:

    自述文件https://github.com/IBM-Blockchain/blockchain-vscode-extension/blob/master/README.md 提供了有关如何为您自己的远程结构创建代表您的 orderers/peers/cas 的节点文件的详细信息。

    但是,如果您的远程结构使用 TLS,则信息有点稀疏,请参阅https://github.com/IBM-Blockchain/blockchain-vscode-extension/issues/1319 了解更多信息。

    【讨论】:

    • RE:创建节点文件——虽然上面的第一个文档列出了文件的内容,但是文档并没有直接说明文件的名称,所以你可以确认一下:fabric-peer.json ;织物-ca.json;面料-orderer.json;对等体.json;订购者.json?还是什么?
    • 文件名可能不重要。它是描述它是什么类型的节点的类型字段。我自己并没有真正尝试过,但如果文件名很重要,我会建议提出进一步的问题。
    猜你喜欢
    • 2018-09-30
    • 1970-01-01
    • 2018-02-28
    • 1970-01-01
    • 2023-03-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多