September 29, 2024
fast story
sudo journalctl -u geth -f
sudo journalctl -u story -f
sudo journalctl -u geth -u story -f
Проверь еще вот этим скриптом высоту блоков которую успела набрать твоя нода
while true; do local_height=$(curl -s localhost:26657/status | jq -r '.result.sync_info.latest_block_height'); network_height=$(curl -s https://rpc-story.josephtran.xyz/status | jq -r '.result.sync_info.latest_block_height'); blocks_left=$((network_height - local_height)); echo -e "\033[1;38mYour node height:\033[0m \033[1;34m$local_height\033[0m | \033[1;35mNetwork height:\033[0m \033[1;36m$network_height\033[0m | \033[1;29mBlocks left:\033[0m \033[1;31m$blocks_left\033[0m"; sleep 5; done
curl localhost:26657/status | jq
sudo apt-get update -y && sudo apt upgrade -y && sudo apt-get install make build-essential pkg-config libssl-dev unzip tar lz4 gcc git jq -y
sudo apt install nano
wget -q --show-progress https://story-geth-binaries.s3.us-west-1.amazonaws.com/geth-public/geth-linux-amd64-0.9.2-ea9f0d2.tar.gz
tar -xzvf geth-linux-amd64-0.9.2-ea9f0d2.tar.gz
mv geth-linux-amd64-0.9.2-ea9f0d2/geth /usr/local/bin/
nano /etc/systemd/system/geth.service
[Unit] Description=Geth Node After=network.target [Service] ExecStart=/usr/local/bin/geth --iliad --syncmode full Restart=always User=root [Install] WantedBy=multi-user.target
sudo systemctl enable geth sudo systemctl start geth
wget -q --show-progress https://story-geth-binaries.s3.us-west-1.amazonaws.com/story-public/story-linux-amd64-0.9.11-2a25df1.tar.gz
tar -xzvf story-linux-amd64-0.9.11-2a25df1.tar.gz
mv story-linux-amd64-0.9.11-2a25df1/story /usr/local/bin/
nano /etc/systemd/system/story.service
[Unit] Description=Story Client After=network.target [Service] ExecStart=/usr/local/bin/story run WorkingDirectory=/root/.story/story Restart=always User=root [Install] WantedBy=multi-user.target
story init --network iliad --moniker <Your_Node_Name>
sudo systemctl enable story sudo systemctl start story
story validator export --export-evm-key --evm-key-path ~/.story/story/.env
cat ~/.story/story/.env
story validator create --stake 1000000000000000000 --private-key <YOUR PRIVATE KEY>
curl -s localhost:26657/status | jq -r '.result.validator_info'
Перейди в эксплорер сети и в поле поиска вставь свой HEX адрес (1), скорее всего ты увидишь что твой валидатор не активен и находится в "тюрьме"
cd
wget https://story-geth-binaries.s3.us-west-1.amazonaws.com/story-public/story-linux-amd64-0.10.0-9603826.tar.gz
tar -xzvf story-linux-amd64-0.10.0-9603826.tar.gz
sudo systemctl stop story story sudo systemctl stop story story-geth sudo systemctl stop story geth
cp $HOME/story-linux-amd64-0.10.0-9603826/story /usr/local/bin/
source $HOME/.bash_profile
sudo systemctl daemon-reload
sudo systemctl start story-geth sudo systemctl start story sudo systemctl start story geth
sudo journalctl -u geth -u story -f
Удаление ноды
sudo systemctl stop story story sudo systemctl stop story story-geth sudo systemctl stop story geth
sudo rm /etc/systemd/system/story.service
sudo rm /etc/systemd/system/geth.service
sudo systemctl daemon-reload rm -rf $HOME/.story/
rm story-linux-amd64-0.9.11-2a25df1.tar.gz
rm geth-linux-amd64-0.9.2-ea9f0d2.tar.gz
rm geth-linux-amd64-0.9.2-ea9f0d2
rm story-linux-amd64-0.9.11-2a25df1