From 3ea2a7e8caea881b47244b655175f88f1e3ee6f5 Mon Sep 17 00:00:00 2001 From: karlo <93879680+karloinv@users.noreply.github.com> Date: Mon, 4 Mar 2024 19:00:36 +0200 Subject: [PATCH] celestia updated snapshots (#91) --- docs/celestia/sync/addrbook.mdx | 2 +- docs/celestia/sync/peers-seeds.mdx | 2 +- docs/celestia/sync/snapshot-archive.md | 32 ++++++++++++++++++++++++++ docs/celestia/sync/state-sync.mdx | 2 +- 4 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 docs/celestia/sync/snapshot-archive.md diff --git a/docs/celestia/sync/addrbook.mdx b/docs/celestia/sync/addrbook.mdx index ca3f68a..a3e291b 100644 --- a/docs/celestia/sync/addrbook.mdx +++ b/docs/celestia/sync/addrbook.mdx @@ -1,5 +1,5 @@ --- -sidebar_position: 4 +sidebar_position: 5 description: AddrBook --- diff --git a/docs/celestia/sync/peers-seeds.mdx b/docs/celestia/sync/peers-seeds.mdx index fee3a72..fdf1b71 100644 --- a/docs/celestia/sync/peers-seeds.mdx +++ b/docs/celestia/sync/peers-seeds.mdx @@ -1,5 +1,5 @@ --- -sidebar_position: 3 +sidebar_position: 4 description: Live Peers / Seeds --- diff --git a/docs/celestia/sync/snapshot-archive.md b/docs/celestia/sync/snapshot-archive.md new file mode 100644 index 0000000..5a4673a --- /dev/null +++ b/docs/celestia/sync/snapshot-archive.md @@ -0,0 +1,32 @@ +--- +sidebar_position: 2 +description: Archival snapshot +--- + +# Archival snapshot + +> This snapshot contains the full state of the blockchain. + +import Snapshots from '@site/src/components/Snapshots'; + + + +:::info +Snapshots are taken every 24 hours. +::: + +```bash +sudo systemctl stop celestia-appd + +# make a backup +cp $HOME/.celestia-app/data/priv_validator_state.json $HOME/.celestia-app/priv_validator_state.json.backup + +# reset your node and download a snapshot +celestia-appd tendermint unsafe-reset-all --home $HOME/.celestia-app --keep-addr-book +wget | lz4 -dc - | tar -xf - -C $HOME/.celestia-app + +# replace the priv_validator_state.json you have backed up +mv $HOME/.celestia-app/priv_validator_state.json.backup $HOME/.celestia-app/data/priv_validator_state.json + +sudo systemctl restart celestia-appd && sudo journalctl -u celestia-appd -f -o cat +``` \ No newline at end of file diff --git a/docs/celestia/sync/state-sync.mdx b/docs/celestia/sync/state-sync.mdx index 9f8253b..d3212e1 100644 --- a/docs/celestia/sync/state-sync.mdx +++ b/docs/celestia/sync/state-sync.mdx @@ -1,5 +1,5 @@ --- -sidebar_position: 2 +sidebar_position: 4 description: State Sync ---