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 Pundi AIFX
You need to install Pundi AIFX 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.
docker pull ghcr.io/PundiAI/fx-core:8.5.1docker pull ghcr.io/PundiAI/fx-core:8.5.1Initializing fxcore
docker run --rm -v $HOME/.fxcore:/root/.fxcore ghcr.io/PundiAI/fx-core:8.5.1 init fx-zakir --chain-id fxcore
docker run --rm -v $HOME/.fxcore:/root/.fxcore ghcr.io/PundiAI/fx-core:8.5.1 init fx-zakir --chain-id dhobyghaut
Download genesis (copy and run each line, line by line)
wget https://raw.githubusercontent.com/PundiAI/fx-core/release/v6.0.x/public/mainnet/genesis.json -O ~/.fxcore/config/genesis.jsonwget https://raw.githubusercontent.com/PundiAI/fx-core/release/v6.0.x/public/testnet/genesis.json -O ~/.fxcore/config/genesis.jsonUpon startup the node will need to connect to peers. you can add peers to the config.toml config file:
docker run --rm -v $HOME/.fxcore:/root/.fxcore pundiAI/fx-core:8.5.1 config config.toml p2p.seeds "c5877d9d243af1a504caf5b7f7a9c915b3ae94ae@fxcore-mainnet-seed-node-1.functionx.io:26656,b289311ece065c813287e3a25835bb6378999aa5@fxcore-mainnet-seed-node-2.functionx.io:26656,96f04dffc25ffcce11e179581d2a3ab6cb5535d5@fxcore-mainnet-node-1.functionx.io:26656,836ded83bac83a4ac8511826fa1ad4ca2238f960@fxcore-mainnet-node-2.functionx.io:26656,7c7a260eeefda37eac896ae423e78cf345a2ef70@fxcore-mainnet-node-3.functionx.io:26656,0fee38117655b6961319950d6beb929fb194217c@fxcore-mainnet-node-4.functionx.io:26656,6e8818051a2ca9b8be67a6f2ba48c33d8c489d5c@fxcore-mainnet-node-5.functionx.io:26656"docker run --rm -v $HOME/.fxcore:/root/.fxcore pundiAI/fx-core:8.5.1 config config.toml p2p.seeds "e922b34e660976a64d6024bde495666752141992@dhobyghaut-seed-node-1.functionx.io:26656,a817685c010402703820be2b5a90d9e07bc5c2d3@dhobyghaut-node-1.functionx.io:26656"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.jsonfrom an old node to multiple new nodes. Running two nodes with the samepriv_validator.jsonwill cause you to double sign.
Last updated