Skip to content

Commit

Permalink
addrbook & snapshots OranG3cluB (#146)
Browse files Browse the repository at this point in the history
* Update snapshot.md

* Update addrbook.mdx
  • Loading branch information
Vasya-kripto authored Nov 15, 2024
1 parent 6ff965d commit feef2f3
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/story-protocol/sync/addrbook.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export let endpoints = [
'https://snapshots.polkachu.com/testnet-addrbook/story/addrbook.json',
'https://support.synergynodes.com/addrbook/story_testnet/addrbook.json',
'https://story-testnet-snapshot.openbitlab.com/addrbook.json',
'https://orang3club.tech/addrbook.json',
];

export let home = 'story/story';
Expand Down
40 changes: 40 additions & 0 deletions docs/story-protocol/sync/snapshot.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,46 @@ wget -O $HOME/.story/story/config/addrbook.json "https://raw.githubusercontent.c
sudo systemctl restart story-geth
sudo systemctl restart story && sudo journalctl -fu story -ocat`
},
{
name: "OranG3cluB: pruned snapshots, updated every 3 hours",
text:
`# Install required dependencies:
sudo apt install curl tmux jq lz4 unzip -y
# Stop the services:
sudo systemctl stop story.service
sudo systemctl stop geth.service
# Backup validator state and reset data:
cp $HOME/.story/story/data/priv_validator_state.json $HOME/.story/story/priv_validator_state.json.backup
rm -rf $HOME/.story/story/data
rm -rf $HOME/.story/geth/odyssey/geth/chaindata
# Download the latest snapshot and recover validator state:
curl -L https://orang3club.tech/geth_snapshot_pruned.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.story/geth
curl -L https://orang3club.tech/story_snapshot_pruned.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.story/story
mv $HOME/.story/story/priv_validator_state.json.backup $HOME/.story/story/data/priv_validator_state.json
# Restart the services:
sudo systemctl start story.service
sudo systemctl start geth.service`
},
{
name: "OranG3cluB: achive snapshots, updated every 3 hours",
text:
`# Install required dependencies:
sudo apt install curl tmux jq lz4 unzip -y
# Stop the services:
sudo systemctl stop story.service
sudo systemctl stop geth.service
# Backup validator state and reset data:
cp $HOME/.story/story/data/priv_validator_state.json $HOME/.story/story/priv_validator_state.json.backup
rm -rf $HOME/.story/story/data
rm -rf $HOME/.story/geth/odyssey/geth/chaindata
# Download the latest snapshot and recover validator state:
curl -L https://orang3club.tech/geth_snapshot_archive.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.story/geth
curl -L https://orang3club.tech/story_snapshot_archive.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.story/story
mv $HOME/.story/story/priv_validator_state.json.backup $HOME/.story/story/data/priv_validator_state.json
# Restart the services:
sudo systemctl start story.service
sudo systemctl start geth.service`
},
];

<SelectPaste2 items={items} tip="Select a snapshot from the list to view the relevant configuration commands." />

0 comments on commit feef2f3

Please sign in to comment.