State-sync
Pre-requisites
Supported OS
Linux x86_64 is confirmed to work. Other platforms may work but there is no guarantee. We will extend our support to other operating systems after we have stabilised our current architecture.
Prepare your machine
To run Planq Mainnet nodes, you will need a machine with the following minimum requirements:
4-core, x86_64 / ARM architecture processor
16 GB RAM
1 TB of storage space.
Introduction
The fastest way to get a node synced to the latest block-height, is by using State-sync. With state-sync your node downloads a data snapshot near the head of the chain and verifies this data. This leads to drastically shorter times to join the network.
Keep in mind that the blocks before state-sync trust height will not be queryable. So, in order to run a full node, it is better not to use state-sync, but use Snapshot's archive snapshot instead.
IMPORTANT
State-sync depends on the ability to pull a snapshot from its persistent-peers, so there is some amount of timing and luck involved with this method. Although it is the fastest way, it is not always going to work, in case state-sync is not syncing, we recommend using quicksync, although it takes a longer time to download the snapshot, this method is more guaranteed to work.
Step 1. Get the latest planqd binary
The latest Planqd version release is planqd v1.0.9
Install the Planq Mainnet binaries from GitHub:
Check that
planqd
is effectively installed:
Step 2. Configure planqd
Initialize planqd. Replace the [moniker] with an ID for your node.
Download and replace the Planq Mainnet
genesis.json
by:
Verify the sha256sum checksum of the
genesis.json
. You should seeOK!
if the sha256sum checksum matches.
Replace the following parameters in the
~/.planqd/config/config.toml
file, by executing:
Step 3. Run everything
Now that
planqd
has been configured, we are ready to start the node:
This will take a couple of minutes, if your node manages to state-sync, you should see that snapshot chunks are being downloaded, and your node starts signing blocks.
To check the current node syncing status:
That's it! You are now running a synced node on Planq Mainnet!
Last updated