This is Fabric High Throuput Code for Hyperledger Meetup
- Docker - v1.12 or higher
- Docker Compose - v1.8 or higher
- Git client - needed for clone commands
- Node.js v8.9.x
- Go v1.11.x
- Download Docker images
move to chaincode directory
$ cd chaincode
install & remove modules with go mod
$ go mod tidy
test general chaincode:
$ go test ./general
test high throughput Chaincode:
$ go test ./high-throughput
test high throughput removed phantom read Chaincode:
$ go test ./high-throughput-phantom
test chaincode with fabric & nodejs sdk
move to server root directory
$ cd server
Installs the fabric-client and fabric-ca-client node modules
starts the node app on PORT 4000
$ ./scripts/runApp.sh
preInstall to test chaincode
$ ./scripts/preInstall.sh
init Marbles & transfer Marbles
$ ./scripts/runGeneral.sh
read Marbles result
$ ./scripts/readGeneralMarbles.sh
init Marbles & transfer Marbles
$ ./scripts/runHighThroughput.sh
read Marbles result
$ ./scripts/readHighThroughputMarbles.sh
init Marbles & transfer Marbles
$ ./scripts/runHighThroughputPhantom.sh
read Marbles result
$ ./scripts/readHighThroughputPhantomMarbles.sh
init Marbles & transfer Marbles
$ ./scripts/runSolution.sh
read Marbles result
$ ./scripts/readSolution.sh