Skip to content

Latest commit

 

History

History
98 lines (72 loc) · 3.57 KB

File metadata and controls

98 lines (72 loc) · 3.57 KB

Running Fabric-BDLS Experimental

For reference/Prereqs please check the the readme file in: https://github.com/hyperledger/fabric-samples/blob/main/test-network-nano-bash/README.md

Note! If you have not run Fabric before, I recommend starting to run Fabric using the Sample network. There are many guides I choose RunningFabricAndSamplesOnGitpod By Deepto.

experiment-guide

For the experiment, we need two projects. One for Fabric source code and the second one for the test network.

image

  • Please verify Go Environment by run go env

image

Clone the repositories

Both repositories must be in the same directory level to avoid extra modification

mkdir -p ~/go/src/github.com/BDLS-bft/
  1. Clone Fabric repository:
git clone https://github.com/BDLS-bft/fabric.git
cd fabric
git checkout BDLS-RAFT-TPS-readyc

image

  1. Clone Test fabric-samples repository:
git clone https://github.com/BDLS-bft/fabric-samples.git

Fabric

Build new Orderer base on BDLS

Navigate to the fabric location the we cloned in /home/ahmed/go/src/github.com/BDLS-bft/fabric

cd fabric
rm -f build/bin/orderer & make orderer

image

Verify the new Orderer binary

  • NOTE! Make sure you build other binary as listed below if you have a new environment

image

Fabric-samples

step out the Fabric directory cd ... navigate into fabric-samples cd fabric-samples

pwd
~/go/src/github.com/BDLS-bft/fabric-samples/

We are working on the /test-network-nano-bash test network project.

  1. Generate the network artifact
./generate_artifacts.sh BFT

image

  1. Run the Orderer nodes.

open four terminal windows in the directory. rune:

  • ./orderer1.sh BFT in terminal one
  • ./orderer2.sh BFT in terminal two
  • ./orderer3.sh BFT in terminal three
  • ./orderer4.sh BFT in terminal four

image

The terminals output should look like this: image

Keep the four terminals running, we will continue work in other terminal.

  1. Join the network Open a new terminal window and type this command to join the Orderers nodes.
./join_orderers.sh BFT

image

The benchmark test will trigger automatically, navigate to the Orderers four windows

image

To change the Configuring the fabric sample network to run the network, in the configtx.yaml located in the bft-config, as fabric-samples/test-network-nano-bash/bft-config

test-network-nano-bash/bft-config/configtx.yaml

image