Steps to set up blockchain environment.
- ref: Quorum from Scratch
- Or using Quorum-wizard to quickly start 7-node blockchain for testing.
-
Create virtualenv and install library
virtualenv -p ~/.pyenv/versions/3.8.5/bin/python venv pip install --upgrade web3 pip install flask
Or you can just run
installLib.sh
to install all library you need. -
Change your node.js version to 12 (Version 14 has some issue to start ganache-cli, is still not fixed.)
nvm use 12
-
Start ganache-cil
ganache-cli -p 7545 -q
-
Download
solc
to compile solidity file in local.sudo add-apt-repository ppa:ethereum/ethereum sudo apt-get update sudo apt-get install solc
- Run
add_node_raft.py
: Will clone the Quorum repo, build, and add 13 nodes on local. - Go to your cloned
quorum/fromscratch
file and rungeth
by./startnode.sh
to start all nodes. - Run
addPeer.py
file to add other peers automatically into quorum network through command line.
And DONE!