Genesis sync

Start your Quantum Portal node and download the blockchain from scratch.

đź’ˇ

Tip: Looking for instructions using the old script node.sh? See here.

đź’ˇ

Tip: These instructions synchronize your Quantum Portal node from scratch using the Quantum Portal peer-to-peer network. You can synchronize your node more quickly by downloading a recent snapshot of the blockchain as per Quick sync.

Prerequisites

Follow the upgrade path

Configure your system as per Node configuration except specify the correct version of QPd according to your network and position in the upgrade path:

Core VersionStart HeightUpgrade Height
v0.10.70384000
v0.13.63840011060850
v0.14.110608511263450
v0.15.011052501336350
v0.16.113363501889000
v0.17.318890002471750
v0.18.324717502472290
v0.19.424722903331350
v0.20.033313503643500
v0.21.136435003644000
v0.24.036440003852250
v0.26.538522504984950
v0.28.049849505030000
v0.29.150300005853000
v0.31.258530006895400
v0.33.268954009151750
v0.34.3915175011795700
v0.35.511795700N/A
Core VersionStart HeightUpgrade Height
v0.13.6690489897350
v0.14.18973501105250
v0.15.011052501249660
v0.16.112496601619950
v0.17.316199502183275
v0.18.321832752257265
v0.19.422572653356100
v0.20.033561003429625
v0.21.134296253445200
v0.22.134452003536040
v0.23.035360403620300
v0.24.036203003827825
v0.25.038278253842800
v0.26.538428004868740
v0.27.048687404874000
v0.28.048740005093500
v0.29.150935005895180
v0.31.258951806315000
v0.32.263150006939420
v0.33.169394208528500
v0.33.285285009462850
v0.34.3946285012017025
v0.35.312017025N/A

First, you have to change directory to “QPate-community” repository.

cd QPate-community

To run setup-node.sh you have to specify the network (mainnet, testnet) and the QPd core version you want to use. You must follow the upgrade path as specified in the table above (it is different for each network). setup-node.sh will download QPd binary version you specified in “$QPD_HOME/bin” folder and create a symbolic link.

-rwxr-xr-x  1 kalid  staff  70832530 Jul  6 11:04 QPd-v0.13.6
lrwxr-xr-x  1 kalid  staff        48 Jul  6 11:04 QPd -> /Users/kalid/.QP_testnet/bin/QPd-v0.13.6
./scripts/setup-node.sh -n mainnet -a v0.10.7
./scripts/setup-node.sh -n testnet -a v0.13.6

Start your node with the newly configured QPd version:

$QPD_HOME/bin/QPd start --home $QPD_HOME >> $QPD_HOME/logs/QPd.log 2>&1 &

Your Quantum Portal node will resume downloading the blockchain.

After your blockchain has reached UPGRADE_HEIGHT you will see a panic in the logs like

panic: UPGRADE {NAME} NEEDED at height: {UPGRADE_HEIGHT}:

View your logs in real time

tail -f $QPD_HOME/logs/QPd.log

Repeat this process for each entry in the upgrade path when the “panic” message appears in the logs.

Edit this page