Friday, 9 October 2020

HyperLedger Besu - Node Setup

                                        


This article is part of Hyperledger Besu Series. 

In this part of the series, we are going to see how to setup a permissioned network within our local computer. 

Step 1: Move the besu folder from Downloads/ or your default download directory to your Main Working directory with enough storage space.  

Step 2: Install Curl in your system.

Step 3: Create a folder for the Permissioned Network within the besu-1.5.0 folder.

 

View of Besu directory after Permissioned-Network folder creation


Step 4: Create three folder Node-1, Node-2, Node-3 each representing a Node in the Permissioned Network.

 

 
View of Permissioned-Network folder with three Nodes


Step 5: Within each Node folder, create a data folder for storing the blockchain data. The Node key is also saved within this directory when node starts Besu.


View of Node Folder showing the sub-directory 'data'


Step 6: Genesis Block is the first Block in the Blockchain. We need to create a Genesis config file in json format and place it in the Permissioned-Network directory. Clique is the consensus algorithm here, so we need to include atleast signature of one node in the genesis file.  



Step 7:  Copy the file from the link and paste in Permissioned-Network Directory

Step 8: Get the Node-1 Address from the file in /Node-1/data/nodeAddress1 and replace that instead of text <Node-1 Address>  for the parameter  "extraData" in the cliqueGenesis.json file.

 Step 9: Copy the permissions config from the link and paste in data directory all Nodes (/Node-1/data, /Node-2/data, /Node-3/data)

 


 

No comments:

Post a Comment

Total Pageviews