Full node with Docker
This guide will explain how to install the fxcored mainnet
or fxcored testnet
command line interface (CLI) on your system with Docker
option. With these installed on a server, you can participate on the mainnet or testnet as a Validator.
Install f(x)Core
You need to install f(x)Core before you go further
Use Docker
Pull docker images
if you do not already have docker installed, there will be a prompt for you to install it. Follow the instructions given.
Initializing fxcore
docker run --rm -v $HOME/.fxcore:/root/.fxcore functionx/fx-core:6.0.0 init fx-zakir --chain-id fxcore
Download genesis (copy and run each line, line by line)
Upon startup the node will need to connect to peers. you can add peers to the config.toml
config file:
** IMPORTANT At this stage **BEFORE **starting the node, please download the latest snapshot, refer to this link.
And at this stage, what is important is your validator keys that is stored in a json file for you to do a recovery in the future. For more information how to access the files.
Run docker
To check if fxcore is synced:
Return:
To ensure that the blocks are synced up with your node, under "sync_info", "catching_up value" should be false "catching_up value": false
. This may take a few hours and your node has to be fully synced up before proceeding to the next step. You may cross reference the latest block you are synced to "sync_info": "latest_block_height" and the latest block height of our Testnet blockchain on our Testnet blockchain explorer or our Mainnet.
Make sure that every node has a unique
priv_validator.json
. Do not copy thepriv_validator.json
from an old node to multiple new nodes. Running two nodes with the samepriv_validator.json
will cause you to double sign.
Last updated