Skip to content

Latest commit

 

History

History
45 lines (40 loc) · 1.37 KB

README.md

File metadata and controls

45 lines (40 loc) · 1.37 KB

Tracenet

An Hyperledger Fabric network. It has 3 orgs and 1 orderer. For the certificates generation I used cryptogen, since it's a testing network. Each peer has a couchdb instance.

Prerequisites

Running and working on the netowrk

Script permissions

sudo chmod 755 main.sh
sudo chmod 755 settings.sh
sudo chmod -R 755 scripts/

Run the network

./main.sh network restart

This command will:

  • down the network and clean
  • initialization with cryptogen
  • start the network with docker compose
  • create a channel named "mychannel"
  • join the channel by the two orgs (Org1, Org2)
  • set the anchor peer
  • deploy the chaincode

Testing the network

The framework used for the tests is Caliper. Test are run after initializing the ledger with 2000 transactions. Then every workload has 2000 tx with 200tps.

./main.sh caliper init
./main.sh caliper launch campaign
./main.sh caliper launch shareData
./main.sh caliper launch storeAnonymizedKG
./main.sh caliper launch storeProof
./main.sh caliper launch shareAnonyKG