1.node依赖
nvm install v8.9.0
npm install -g npm@latest
npm install -g node-gyp
2.安装docker依赖
安装docker:https://www.jianshu.com/p/a7688319650a
安装docker-compose:https://www.jianshu.com/p/02e4e5c20ee1
3.安装项目依赖(TrustedBench目录下执行)
npm install
npm install grpc@1.10.1
npm install fabric-ca-client@1.1.0 fabric-client@1.1.0
4.修改注册合约的超时时间
vi src/fabric/e2eUtils.js
211行 Client.setConfigSetting('request-timeout', 120000);
改为:Client.setConfigSetting('request-timeout', 720000);
5.启动测试用例
npm test -- simple -c ./benchmark/simple/config.json -n ./benchmark/simple/fabric.json