Contract interaction (register chain) - part 1
- Please follow instructions in Register-new-sidechain wiki
Contract interaction (become a validator) - part 2
You must finish all the steps from part 1 before you can start with part 2
- Now you need to vest in chain to be able to start up your new sidechain
- Please follow instructions in Vest-in-chain wiki
Node start-up - part 3
You must finish all the steps from part 2 before you can start with part 3
Follow these steps to setup your server and start up the node and finalize sidechain network creation:
- install docker, you can follow this tutorial for example, but feel free to install it any way you prefer.
- clone
master
branch of lition-makergit clone https://gitlab.com/lition/lition-maker
- go to lition maker folder
cd lition-maker
- run setup script
./setup.sh
- our recommendation is to use screen or something similar to run your node
Important !!! You can also run a command with parameters instead of manually typing it, see readme and example at the end of this part
Now you need to follow interactive setup of your node:
_ __ __
| | | \ / |
| | | \ / |
| | | \/ |
| | | |\ /| |
| | | | \ / | |
| |_____| | \/ | |
|_________| |_| Version Built on Lition 1.0-testing
Please select an option:
1) Create Network
2) Join Network as a validator
3) Join Network
4) Exit
Now you need to select number 1
Please enter node name:
please specify you node name (can not be changed)
Please enter private key of this node:
please specify private key from metamask for account you used in Part 1
How to export key from metamask
Please select ethereum network: [Enter for default -> Ropsten]
1) Ropsten
2) Mainnet
Please enter IP Address of this node:
please specify IP address of your node
Please enter existing chainId to connect to:
please specify chain ID you would like to connect to
Please enter RPC Port of this node[Default:22000]:
Please enter Network Listening Port of this node[Default:22001]:
Please enter Constellation Port of this node[Default:22002]:
Please enter Node Manager Port of this node[Default:22003]:
Please enter WS Port of this node[Default:22004]:
You can use default values by pressing Enter or used ports that you would like to. Warning please sure that you properly secure RPC Port and WS Port, so only you or your Dapp can connect to them!
Node start-up (setup) by command example
- Instead of manually typing all the required information, you can run a command instead, see example below:
./setup.sh create -n DemoCreator ip <YOUR SERVER IP ADDRESS> -r 22000 -w 22001 -c 22002 --nm 22003 --ws 22004 -pk <YOUR MINING PRIVATE KEY> --ethnet ropsten --chainId <CHAIN ID> 2>&1 | tee ~/log
Node successful start-up
- After you run manually ./setup.sh or run it as a command, it automatically calls
startMining
on Lition Registry contract to let the other nodes know that your node is up and your are ready to take part in mining process. - Please note that this might take quite some time as
startMining
is processed on Ethereum network so in edge cases it might take even few hours, but usually it is just a few minutes. - Once you see message the Node is running, everything is setup and your node is running
Node restart
- If you must shut down your node or it just crashed from some reason, do not use ./setup.sh script again to boot it up - it would override the saved state (blocks, your private keys in keystore if you added some, etc...)
- For restart, please enter the directory with saved state - it is the
Node name
parameter that you specified during setup and run ./start.sh script without any parameters. In case of this example it is DemoCreator
cd DemoCreator/
./start.sh