Skip to content

rezajavan/Extend_HLF_testnetwork

Repository files navigation

Extend_HLF_testnetwork

This repository demonstrates the setup and expansion of Hyperledger Fabric test networks with varying organizational structures. The network configurations include:

Organization Structures: Configurations:

  • 4 peers in Organization 1, 1 peer in Organization 2
  • 4 peers in Organization 1, 4 peers in Organization 2
  • 8 peers in Organization 1, 1 peer in Organization 2
  • 8 peers in Organization 1, 4 peers in Organization 2
  • 8 peers in Organization 1, 8 peers in Organization 2

Branches:

  • master branch: Sets up and configures these networks.

  • setupFabcar branch: Installs Fabcar chaincode across each network configuration and conducts performance tests using caliper-benchmarks.

  • setupDrug branch: Similar to setupFabcar, but employs chaincode tailored for drug supply chain management that we coded.

  • Each branch provides a specific setup and testing environment for different chaincodes, facilitating performance evaluation and use-case exploration within distinct network structures.


Installing Hyperledger Fabric test-network

  • Install test-network

Step 1: Installing Hyperledger Fabric version 2.2.1

To install the test-network, you can follow the instructions in the Hyperledger Fabric documentation or execute the following commands:

curl -sSLO https://raw.githubusercontent.com/hyperledger/fabric/main/scripts/install-fabric.sh && chmod +x install-fabric.sh
./install-fabric.sh --fabric-version 2.2.1 docker samples binary

Follow the step-by-step instructions detailed in this link to confirm the proper functionality of the test-network.

Extend test-network

  • clone this repository

step 3: go to the location where the fabric-sample directory is located. For example, if the address of the fabric-sample directory is ""/home/file1/fabric-sample"", go to ""/home/file1"", then clone the master branch of this repository.

step 4: In the "Extend_HLF_testnetwork" folder repository, open a terminal and run the following command:

./mergefiles.sh

step 5: Execute the desired setup_?_?.sh script(s) in the ""fabric-sample/test-network"" directory using the following command format:

./setup_?_?.sh

Replace '?' with the desired script identifier to proceed.

Citation

This repository contains code associated with the research paper:

https://arxiv.org/abs/2402.17342

If you use the code in your research, please consider citing the paper.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages