Overview
- Prepare the machine.
- Install Heimdall and Bor binaries on the full node machine.
- Set up Heimdall and Bor services on the full node machine.
- Configure the full node machine.
- Start the full node machine.
- Check node health with the community.
Install build-essential
This is required for your full node. In order to install, run the below command:
Install binaries
Install both Heimdall and Bor in order. Both must be running to operate a full node.Heimdall
Install the latest version of Heimdall and related services. Make sure you checkout to the correct release version. To install Heimdall, run the following commands:heimdall_version: Valid v0.2+ release tag from https://github.com/0xPolygon/heimdall-v2/releasesnetwork_type:mainnetandamoynode_type:sentry
heimdalld binary.
Then, edit the configuration files under /var/lib/heimdall/configThe templates for each supported network are available here
Download the
genesis.json file and place it under /var/lib/heimdall/config/
Use the following commands based on your target network:
BUCKET_URL is
- https://storage.googleapis.com/amoy-heimdallv2-genesis/migrated_dump-genesis.json for amoy
- https://storage.googleapis.com/mainnet-heimdallv2-genesis/migrated_dump-genesis.json for mainnet
Bor
Install the latest version of Bor, based on valid v2.0+ released version.bor_version: valid v2.0+ release tag from https://github.com/0xPolygon/bor/releasesnetwork_type:mainnetandamoynode_type:sentry
bor binary. Verify the installation by checking the Bor version on your machine:
Configure Heimdall and Bor seeds
The latest bor and heimdall seeds can be found here. To configure them, update the following lines:- If not done previously, set the
seedsandpersistent_peersvalues in/var/lib/heimdall/config/config.toml - Set the
bootnodesin/var/lib/bor/config.toml
(Optional) Start Heimdall from snapshot
In case you want to start Heimdall from a snapshot,you can download it, and extract in the
data folder.
Examples of snapshots can be found here https://all4nodes.io/Polygon, and they are managed by the community.
e.g.:
Update service config user permission
Start services
Run the full Heimdall node with these commands on your Sentry Node:- On the remote machine/VM, run
curl localhost:26657/status. - In the output,
catching_upvalue should befalse.
Logs
Logs can be managed by thejournalctl linux tool. Here is a tutorial for advanced usage: How To Use Journalctl to View and Manipulate Systemd Logs.