Skip to content

Latest commit

 

History

History
73 lines (47 loc) · 2.5 KB

genesis-sync-no-cosmovisor.md

File metadata and controls

73 lines (47 loc) · 2.5 KB
description
Sync an archive node with the entire chain state.

Genesis Sync (no cosmovisor)

{% hint style="warning" %} Genesis Sync requires at least 32gb system memory (RAM) for handling the migration included with the update to `v2.0.1-fix` {% endhint %}

{% hint style="info" %} Note: Steps may have multiple options. Be sure to choose the tab that matches your machine / desired setup. {% endhint %}

Before starting your node, it's a good idea to think about how you want to run it so that the process does not get killed accidentally. This is not obvious for beginners. GNU screen is a great option for beginners. More advanced setups can be achieved using systemd.

When syncing from genesis, simply start your layer node with the command:

./layerd start

You should now see your log quickly downloading blocks!

When syncing the chain from genesis, changing binaries at each upgrade height is required. The upgrades for the current layertest-2 chain are as follows:

Applying Upgrade v2.0.0-audit

Let the node sync until it reaches height: "744999" (or wait for node to stop on it's own at this height). Height can be checked by viewing the logs, or use the command:

./layerd query block | grep -A 5 "app_hash"

Stop your layer node then checkout git commit #9129e1463c3b8e4a04e8797fb36a3b0ffb6ec23c for building v2.0.0-audit:

git checkout main && git pull && \
git checkout 9129e1463c3b8e4a04e8797fb36a3b0ffb6ec23c && \
go build ./cmd/layerd

When the build finishes, start your node back up with ./layerd start

Applying Upgrade v2.0.1

Let the node sync until it reaches height: "931104" (or wait for node to stop at this height)

Stop your layer node then checkout the tag v2.0.1-fix:

# upgrade to version v2.0.0-audit (hotfix commit)
git checkout main && \
git pull && \
git checkout v2.0.1-fix && \
go build ./cmd/layerd

The start your layer process up again with ./layerd start

The node can now fully sync.

Finish Syncing

Check if you're fully synced. Open another terminal window and use the command:

./layerd status

You should see a json formated list of information about your running node. If you see catching_up":false that means that you're node is fully synced and ready to use!