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 7, 2018 in Blockchain by Johnathon
• 9,090 points
4,872 views

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 7, 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: https://github.com/ChoiSD/how-to-Hyperledger-Fabric/blob/master/Docs/Add-Peer-On-Existing-Org-No-CA.md
answered Aug 2, 2018 by Omkar
• 69,210 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, 2019 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,350 points
3,663 views
+1 vote
1 answer

How can I initiate a transaction on ethereum private network using mobile device?

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

answered Apr 18, 2018 in Blockchain by Shashank
• 10,400 points
691 views
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
1,709 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,215 views
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
• 26,740 points
708 views
+4 votes
2 answers

How do I create a new block in Hyperledger Fabric?

This link might help you: https://github.com/hyperledger/fabric-sample ...READ MORE

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

Hyperledger - Can I have some instances on one network while on a Virtual Box?

Yes, you can connect multiple instances to ...READ MORE

answered Aug 1, 2018 in Blockchain by Omkar
• 69,210 points
690 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP