Reputation: 19
I am going to build a channel and peers with hyperledger fabirc.
So I'm going to connect to a channel built with hyperledger fabric using two computers, how do I connect?
first, hyperledger fabric on one computer. Then I installed the fabric on another computer. What should I do here?
Upvotes: 0
Views: 493
Reputation: 4037
When a Hyperledger Fabric network is initially defined, there is a default channel that includes all of the organizations in the 'consortium'. 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
. 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. 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.
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).
Upvotes: 1