Go 1.15
Hyperledger Fabric 1.4.x
Nodejs v8
Docker
curl -sSL http://bit.ly/2ysbOFE | bash -s -- 1.4.4 1.4.4 0.4.22 It will download fabric-samples Copy binaries located in fabric-samples/bin to bft/bin
Use following command to generate orderer and gen tool:
make orderer-docker
make configtxgen
Replace 'orderer' and 'configtxgen' in bft/bin folder with generated ones
- GO installation
Download go1.15
Use following command to create working path:
mkdir ${HOME}/gopath
mv go ${HOME}/gopath
chmod -R 777 go
mkdir -p ${HOME}/gopath/src/github.com/hyperledger/
gedit ~/.bashrc
add the following at the end:
export PATH=$PATH:$HOME/go/bin
export GOPATH=$HOME/gopath
export GOROOT=$HOME/go
export GOBIN=$GOROOT/bin
export PATH=$HOME/gopath/src/github.com/hyperledger/fabric/bft/bin:$PATH
Update:
source ~/.bashrc
Check Go environment:
go env
- GO package installation:
mkdir -p $GOPATH/src/golang/x
cd $GOPATH/src/golang/x
chmod -R 777 golang
- Download the required package:
go env -w GO111MODULE=on
go mod init
git clone https://github.com/golang/tools.git
go get golang/x/tools/go/packages
go mod vendor
If above environment cannot be established, you can download binaries from https://drive.google.com/file/d/1BRS7d2bV7XdPL_DTPppjjFaEOMPAw30v/view?usp=sharing copy the folders in side bft to src/github.com/hyperledger/fabric/bft DO NOT delete bin file
- start network with couchdb in bft/pbft-network folder run:
./byfn.sh up -a -s couchdb
- close network ./byfn.sh down
Direct to bft/client folder, run following command:
node enrollAdmin.js node registerUser.js
Direct to /bft/pipeEdge/app folder, run following command:
Choose system size files. e.g. edge_server10 with 10 edge servers.
Start up system: ./edge_server10.py