Overview
- Prepare the Full Node machine.
- Install Heimdall and Bor packages on the Full Node machine.
- Configure the Full node.
- Start the Full node.
Install packages
Prerequisites
- One machine is needed.
- Bash is installed on the machine.
Heimdall
-
Install the default latest version of sentry for Mainnet:
or install a specific version, node type (
sentryorvalidator), and network (mainnetoramoy). All release versions can be found on Heimdall GitHub repository.
Bor
-
Install the default latest version of sentry for Mainnet:
or install a specific version, node type (
sentryorvalidator), and network (mainnetoramoy). All release versions could be found on Bor Github repository.
Configuration
Configure Heimdall
- Initialize Heimdall configs
CHAIN_ID is heimdallv2-80002 for amoy and heimdallv2-137 for mainnet
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 mainne
- You will need to change a few details in the config files.
- Templates for each supported network are available here
Configure service files for Bor and Heimdall
After successfully installing Bor and Heimdall through packages, their service file could be found under/lib/systemd/system, and Bor’s config file could be found under /var/lib/bor/config.toml.
You will need to check and modify these files accordingly.
-
Make sure the chain is set correctly in
/lib/systemd/system/heimdalld.servicefile. Open the file with following commandsudo vi /lib/systemd/system/heimdalld.service- In the service file, set
--chaintomainnetoramoyaccordingly
- In the service file, set
/lib/systemd/system/heimdalld.service.
-
Make sure the chain is set correctly in
/var/lib/bor/config.tomlfile. Open the file with following commandsudo vi /var/lib/bor/config.toml-
In the config file, set
chaintomainnetoramoyaccordingly. -
To enable Archive mode you can optionally enable the following flags:
-
In the config file, set
/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.:
Start services
Reloading service files to make sure all changes to service files are loaded correctly.- On the remote machine/VM, run
curl localhost:26657/status - In the output,
catching_upvalue should befalse