问题描述
创建超级账本结构网络时,您可以在crypto-config.yaml
和configtx.yaml
中定义组织,订购者和同级物.
When you create a hyperledger fabric network, you define organizations, orderers and peers in crypto-config.yaml
and configtx.yaml
.
但是,如何在已经建立的网络中向现有组织中添加新组织或新对等体?运行cryptogen
和configtxgen
指向仅包含新组织/对等方的配置文件?重新生成所有内容?
But how do you add a new organization or a new peer to an existing organization in a network that is already setup? Run cryptogen
and configtxgen
pointing to config files that contain only the new organizations/peers? Re-generate everything?
推荐答案
您可以通过为新对等端生成加密材料(使用cryptogen extends
),生成新对等端并将该对等端加入到现有通道上来实现此目的.要同步的网络.
You can achieve this by generating the crypto material (using cryptogen extends
) for the new peer, spawning the new peer and joining that peer to the existing channel on the network to sync-up.
您可以在
扩展Hyperledger Fabric网络:正在添加一个新的同伴
这篇关于如何将新的对等方添加到现有的Hyperledger Fabric网络中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!