Using Docker to setup the nodes in the networkΒΆ
- Clone the EKO platform repository
- Run
make set-up
This will install all the dependencies and set up build the docker image for the EKO node
- Copy the genesis configurations for the network to the
blockchain/configuratons/genesis.json
- Copy the key in file format to the
blockchain/configuratons/key.json
. If the node is set up as the miner node then this will be used. - Copy the password used to create the
key.json
to theblockchain/configuratons/node.pwds
. - Different modes:
Start a new network
- Run
make initialize-blockchain
- Type
1
and enter to selectStart a new network
from the options provided.- Run
make dirty-upThis will start the node with a new network configurations.
Join an existing network as a miner node
- Run
make initialize-blockchain
- Type
2
and enter to selectJoin an existing network as a miner node
from the options provided.- Enter the valid enode value of the node you would like to connect to from the existing network
- Run
make dirty-upThis will start the node as a miner node and sync with the existing nodes in the network. If the validator address has been given permission to become a validator in the network the node will start mining the new blocks, else it will wait for the admin to grant permission using the Validator set contract methods.
Join an existing network as a viewer node
- Run
make initialize-blockchain
- Type
3
and enter to selectJoin an existing network as a viewer node
from the options provided.- Enter the valid enode value of the node you would like to connect to from the existing network
- Run
make dirty-upThis will start the node as a viewer node and sync with the existing nodes in the network.
- Now, follow the steps as mentioned from points
31
to41
from the previous section.