How do I add a new node on a Hyperledger network?

+3 votes

I know that When you create a hyperledger fabric network, you define organizations, orderers and peers in crypto-config.yaml and configtx.yaml. But suppose I want to add a new organization or a new peer to an existing organization in a network? Can I run cryptogen and configtxgen pointing to config files that contain only the new organizations/peers and re-generate everything? Will it work? If not, what are the ways I can do it?

Apr 6, 2018 in Blockchain by Johnathon
• 9,070 points

4 answers to this question.

+3 votes
Best answer

You can do this by generating the crypto material using

 cryptogen extends 

for the new peer, spawning the new peer and then joining that peer to the existing channel on the network to sync-up.

You can find the complete guide on: Extending Hyperledger Fabric Network: Adding a new peer

answered Apr 6, 2018 by Christine
• 15,790 points

selected Aug 2, 2018 by Omkar
+2 votes
If you wish to add peers without CA, you can find a guide in the following link:
answered Aug 2, 2018 by Omkar
• 67,120 points
0 votes

You can add an Org to your existing network by using a tool called configtxlator tool. This link contains the steps to show how you can do it. 

Hope this helps...!

answered Oct 23, 2018 by Ramya
0 votes

The cryptogen tool is used to generate all the crypto material required fro peer and organization. The configtxgen tool is used to configure the Hyperledger Fabric network. To add a new node to the network, you can generate the crypto material using cryptogen first, and then use configtxgen to configure and add it to the network.

answered Apr 24 by Raj
How to generate crypto material using cryptogen? Please mention the command. Thanks

You can generate the crypto material as follows:

../../bin/cryptogen generate --config=./org3-crypto.yaml

This command will use the org3-crypto.yaml file and create the keys and certificates necessary.

I run this command, but I couldn't find where the new material is. Can you tell me the location?

Are you using byfn or own implementation?

@Raj, I am using byfn

In that case @Esha, you will find the crypto material in a newly generated crypto-config folder in the present working directory. 

Related Questions In Blockchain

0 votes
2 answers

How do I interact with a smart contract on a private network through web3.js

I found a blog that explains how ...READ MORE

answered Aug 20, 2018 in Blockchain by slayer
• 29,050 points
+1 vote
1 answer


There is no android wallet to connect ...READ MORE

answered Apr 18, 2018 in Blockchain by Shashank
• 10,330 points
0 votes
1 answer

How can i create a simple P2P network on a blockchain?

To develop your own cryptocurrency, you need ...READ MORE

answered Apr 20, 2018 in Blockchain by Christine
• 15,790 points
0 votes
1 answer
0 votes
1 answer

Invalid Batch or signature in Savtooth

This will solve your problem import org.apache.commons.codec.binary.Hex; Transaction txn ...READ MORE

answered Aug 1, 2018 in Blockchain by digger
• 27,620 points
+4 votes
2 answers

How do I create a new block in Hyperledger Fabric?

This link might help you: ...READ MORE

answered Oct 11, 2018 in Blockchain by Sahu
+1 vote
2 answers