Skip to content

Commit

Permalink
Fix test-network to work with BFT consensus.
Browse files Browse the repository at this point in the history
Added a new option for creating channel:
Running ./network.sh createChannel -bft will initiate a channel running BFT orderers.

Signed-off-by: Arkadi Piven <arkadi.piven@ibm.com>
  • Loading branch information
arkadiPiven committed May 31, 2023
1 parent f8f52ca commit 1fb3ed2
Show file tree
Hide file tree
Showing 4 changed files with 281 additions and 246 deletions.
7 changes: 7 additions & 0 deletions test-network/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

You can use the `./network.sh` script to stand up a simple Fabric test network. The test network has two peer organizations with one peer each and a single node raft ordering service. You can also use the `./network.sh` script to create channels and deploy chaincode. For more information, see [Using the Fabric test network](https://hyperledger-fabric.readthedocs.io/en/latest/test_network.html). The test network is being introduced in Fabric v2.0 as the long term replacement for the `first-network` sample.

If you are planning to run the test network with consesnsus type BFT then please pass `-bft` flag as input to the `network.sh` script when creating the channel.
That is to create a channel use:

```bash
./network.sh createChannel -bft
```

Before you can deploy the test network, you need to follow the instructions to [Install the Samples, Binaries and Docker Images](https://hyperledger-fabric.readthedocs.io/en/latest/install.html) in the Hyperledger Fabric documentation.

## Using the Peer commands
Expand Down
Loading

0 comments on commit 1fb3ed2

Please sign in to comment.