Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add guide for non-archive validator #53

Open
jordy25519 opened this issue Jun 8, 2021 · 0 comments
Open

Add guide for non-archive validator #53

jordy25519 opened this issue Jun 8, 2021 · 0 comments

Comments

@jordy25519
Copy link
Contributor

jordy25519 commented Jun 8, 2021

Helps to reduce disk space:
https://wiki.polkadot.network/docs/ru/maintain-guides-how-to-validate-polkadot#synchronize-chain-data

  1. Try sync a node with full node DB: https://s3-ap-southeast-1.amazonaws.com/cennznet-snapshots.centralityapp.com/azalea/1.2.2/fullnode/index.html
  2. Restart with --unsafe-pruning --pruning <NUM_BLOCKS> flags

iirc NUM_BLOCKS must be sufficiently large for validators to allow reorgs for grandpa in worst-case scenarios e.g. (5 * 12 * 60 * 24) would be enough for 1 day of reorgs


After trying the above process, this seems to sync well

docker run --restart=always -v $(pwd)/data:/data -p 9944:994 \
cennznet/cennznet:1.5.0 \
--chain=/cennznet/genesis/azalea.raw.json \
--unsafe-ws-external \
--validator \
--base-path=/data \
--unsafe-pruning \
--pruning 1000

DB usage:
5.4G data/chains/CENNZnet Azalea V1

Other validators showing around 90GB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant