Запуск ноды в режиме валидатора и настройка валидатора . Run the node as validator . Running a Node as Collator Node Operator
Рекомендуемые технические требования
CPU 6
RAM 8
80 GB SSD
- Все команды вводятся по одной
sudo apt update && sudo apt upgrade -ysudo apt install -y cmake pkg-config libssl-dev git build-essential clang libclang-dev curl libz-devcurl https://sh.rustup.rs -sSf | shgit clone https://github.com/bit-country/Bit-Country-Blockchain.gitcd Bit-Country-Blockchaingit checkout bfece87795f3b4bd4be225989af2ed717fbf9f8csource $HOME/.cargo/env./scripts/init.shcargo build --release --features=with-bitcountry-runtime
2. Запускаем ноду с pruning archive , не забудьте вписать свое имя ноды и скопировать ID ноды при старте ноды
./target/release/bitcountry-node --chain tewai --bootnodes /ip4/13.239.118.231/tcp/30344/p2p/12D3KooW9rDqyS5S5F6oGHYsmFjSdZdX6HAbTD88rPfxYfoXJdNU --pruning archive --name 'ИМЯНОДЫ' --telemetry-url 'wss://telemetry.polkadot.io/submit/ 0'
3. После того как нода полностью синхронизируется , нажать CTRL+ C и запустить ноду в режиме валидатора
echo "[Unit]
Description=Bit.Country Node
After=network.target
[Service]
User=root
WorkingDirectory=$HOME
ExecStart=$HOME/Bit-Country-Blockchain/target/release/bitcountry-node --chain tewai --validator --name 'ИМЯНОДЫ' --bootnodes /ip4/13.239.118.231/tcp/30344/p2p/12D3KooW9rDqyS5S5F6oGHYsmFjSdZdX6HAbTD88rPfxYfoXJdNU --telemetry-url 'wss://telemetry.polkadot.io/submit/ 0'
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.target
" > $HOME/bitcountryd.service
sudo mv $HOME/bitcountryd.service /etc/systemd/system
sudo tee <<EOF >/dev/null /etc/systemd/bitcountryd.service
Storage=persistent
EOF
4. Старт ноды
sudo systemctl start bitcountryd
5. Посмотреть логи ноды
journalctl -u bitcountryd -f
6. Сгенерировать ключ сессии
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "author_rotateKeys", "params":[]}' http://localhost:9933
Проверить ID ноды если не успели сохранить при первой загрухке
service bitcountryd restart && sleep 3 && journalctl -u bitcountryd | grep "Local node identity is: " | awk -F "[, ]+" '/Local node identity is: /{print $NF}'
ВТОРОЙ СПОСОБ
Запуск ноды в screen
После второго шага устанавливаем screen
sudo apt install screen
Создаем скрин
screen -S bitcountry
Запускаем ноду в режиме валидатора
./target/release/bitcountry-node --chain tewai --validator --name 'ИМЯНОДЫ' --bootnodes /ip4/13.239.118.231/tcp/30344/p2p/12D3KooW9rDqyS5S5F6oGHYsmFjSdZdX6HAbTD88rPfxYfoXJdNU --telemetry-url 'wss://telemetry.polkadot.io/submit/ 0'
Вход из screen CTRL + A+D
Зайти в screen где нода
screen -d -r bitcountry
Настройка валидатора
- Здесь создать два адреса Stash и Controller
2. Кран тестовых токенов
Дискорд — https://discord.gg/NQPx99wRBc
3. Дальше смотрите видео
https://www.youtube.com/watch?v=xeMqk3So5Mg
Еще гады:
Гады на русском
1. https://seainvestor.medium.com/bitcountry-%D0%B7%D0%B0%D0%BF%D1%83%D1%81%D0%BA-%D0%BD%D0%BE%D0%B4%D1%8B-8ac98612354b
2. https://nodes.guru/bitcountry/setup-guide/en
Оф. гайды:
1. https://docs.bit.country/node-operator/
2. https://github.com/bit-country/bitcountry-docs/blob/master/docs/node-operator.md