简体   繁体   English

如何连接Hyperledger Fabric外部通道

[英]How to Connect Hyperledger Fabric External Channel

I am going to build a channel and peers with hyperledger fabirc. 我将使用hyperledger fabirc建立一个渠道并与之同行。

So I'm going to connect to a channel built with hyperledger fabric using two computers, how do I connect? 因此,我要使用两台计算机连接到使用Hyperledger Fabric构建的通道,该如何连接?

first, hyperledger fabric on one computer. 首先,在一台计算机上使用Hyperledger Fabric。 Then I installed the fabric on another computer. 然后,将结构安装在另一台计算机上。 What should I do here? 我该怎么办?

When a Hyperledger Fabric network is initially defined, there is a default channel that includes all of the organizations in the 'consortium'. 最初定义Hyperledger Fabric网络时,存在一个默认渠道,其中包括“财团”中的所有组织。 These are the initial, founding, members of the network. 这些是网络的初始成员。 Additional organizations may be added. 可能会添加其他组织。

If you study the 'first-network' tutorial , you can see the genesis block being generated by the configtxgen command from a YAML definition of the network to be deployed configtx.yaml . 如果你研究的“第一网络” 的教程 ,你可以看到由所产生的成因块configtxgen命令,从网络的YAML定义部署configtx.yaml The first component brought up is the ordering service, followed by the peer nodes that are optionally connected to other peers via the gossip protocol. 提出的第一个组件是订购服务,其次是对等节点,这些节点可选地通过gossip协议连接到其他对等节点。 There are two aspects to gossip: gossip within an org's peers, and gossip between orgs. 八卦有两个方面:组织同伴内部的八卦和组织之间的八卦。 The former is configured with properties in the core.yaml or corresponding ENV variables, the latter is configured with the AnchorPeers property in the configtx.yaml for the channel. 前者在core.yaml或相应的ENV变量中配置了属性,后者在configtx.yaml的通道中配置了AnchorPeers属性。

When you create a new channel, you specify the address and port of the ordering service that will manage that channel, and you specify the orgs that will participate in that channel. 创建新频道时,请指定将管理该频道的订购服务的地址和端口,并指定将参与该频道的组织。 Then, you join peers to the channel and optionally install chaincode (for endorsing peers). 然后,您将对等方加入到通道中,并可以选择安装链码(用于认可对等方)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM