Edit networkConfig.json
file within scripts/assets folder accordingly to the following desired network parameters:
- name: the name of the network
- id: network id to be used
- nodes: number of nodes
{
"name": "Clique-Network",
"id": 123,
"nodes": 4
}
In the terminal run the script 0-generate-network-setup.sh
.
In the terminal run the script 1-run-bootnode.sh
.
In another terminal run the script 2-run-nodes.sh
.
In another terminal run the following command:
curl -X POST --data '{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":1}' localhost:8545 --silent | jq
Where you should have a similar output to:
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x3"
}
where the result is the number of additional nodes other than the bootnode.
- Dockerize the entire network architecture.