ooibc88 / blockbench

BLOCKBENCH: A Framework for Analyzing Private Blockchains. Blockbench contains workloads for measuring the data processing performance, and workloads for understanding the performance of different layers of Blockchain systems.
https://www.comp.nus.edu.sg/~dbsystem/fabricsharp/#/blockbench
Apache License 2.0
391 stars 174 forks source link

help in running ioheavy/hyperledger #37

Open starrycheng opened 6 years ago

starrycheng commented 6 years ago

@ijingo when I run node deploy.js there is an error encountered parse error, the specific information of this issue is listed as follows:

{"jsonrpc":"2.0","method":"deploy","params":{"type":1,"chaincodeID":{"path":"https://github.com/ijingo/chaincode-test/io"},"ctorMsg":{"args":["init"]}},"id":1}
problem with request: Parse Error

I am wondering how to solve it, is it related to the version of node? Or there is some mistakes in the code deploy.js?

jshaw29 commented 6 years ago

@starrycheng Hi What does the hyper-ledger log say when you try and deploy the contract?

starrycheng commented 6 years ago

@bigboss88 Hi , I did not specify any log file generated when I run node deploy.js under the directory of /src/micro/ioheavy/hyperledger. Or what other log files do you indicate?

jshaw29 commented 6 years ago

@starrycheng Hi

When your run the hyperledger peer the terminal should show a log similar to this

image

As you can see when I deployed the chaincode in the log it showed that it was successfully deployed. Any error from the chain-code or generated by hyper-ledger will appear here

starrycheng commented 6 years ago

@bigboss88 Hi, under what directory and what command line should we execute so that we run the hyperledger peer? I am still confused about that.

jshaw29 commented 6 years ago

@starrycheng Hi

I'm going to assume you want to run hyperledger-fabric 0.6

You have to download hyperledger separate. I believe block-bench may already come with an installer

In benchmark/hyperledger there should be a script called install.sh

Or you can follow this guide

https://www.ibm.com/developerworks/community/blogs/8d277a63-4204-4fd3-8cb8-b7cb222cd522/entry/Steps_to_setup_Blockchain_Hyperledger_Fabric_0_6_development_environment_on_Ubuntu?lang=en

I'm not sure how well it will work on MacOS