PBFT算法演示

安装go and git

【omit】

拉取代码

git clone https://github.com/bigpicturelabs/consensusPBFT/pbft

构建

cd $GOPATH/src/github.com/bigpicturelabs/consensusPBFT/pbft 
go build main.go

运行

节点1(主节点):

./main Apple

节点2:

./main MS

节点3:

./main Google

节点4:

./main IBM

新开一个终端:

curl -H "Content-Type:application/json" -X POST -d '{"clientID":"avavf","operation":"GetMyName","timestamp":"76767879"}' http://localhost:1111/req

好。演示结束。

你可能感兴趣的:(concensus,science)