Установка collator node в Moonbeam

Запуск ноды

wget https://github.com/PureStake/moonbeam/releases/download/v0.12.1/moonbeam
sha256sum moonbeam
chmod +x moonbeam
adduser moonbase_service --system --no-create-home
mkdir /var/lib/alphanet-data
chown moonbase_service /var/lib/alphanet-data
cp ./moonbeam /var/lib/alphanet-data
nano /etc/systemd/system/moonbeam.service
[Unit]
Description="Moonbasystemctl --user start minase Alpha systemd service"
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=on-failure
RestartSec=10
User=moonbase_service
SyslogIdentifier=moonbase
SyslogFacility=local7
KillSignal=SIGHUP
ExecStart=/var/lib/alphanet-data/moonbeam \
--validator \
--port 30333 \
--rpc-port 9933 \
--ws-port 9944 \
--pruning=archive \
--state-cache-size 1 \
--base-path /var/lib/alphanet-data \
--chain alphanet \
--name "YOUR-NODE-NAME" \
-- \
--port 30334 \
--rpc-port 9934 \
--ws-port 9945 \
--execution wasm \
--wasm-execution compiled \
--state-cache-size 1 \
--pruning=archive \
--name="YOUR-NODE-NAME (Embedded Relay)"
[Install]
WantedBy=multi-user.target
"YOUR-NODE-NAME" - имя вашей ноды
systemctl enable moonbeam.service
systemctl start moonbeam.service
systemctl status moonbeam.service
journalctl -f -u moonbeam.service

Настройка телеметрии

wget https://github.com/gantree-io/gantree-node-watchdog/releases/download/v1.1.0rc1/gantree-node-watchdog-v1.1.0rc1-linux.tar.gz
tar -xzf gantree-node-watchdog-v1.1.0rc1-linux.tar.gz
mv gantree_node_watchdog /usr/local/bin/
mkdir -p /var/lib/gantree/parachain
mkdir -p /var/lib/gantree/relay
nano /var/lib/gantree/parachain/.gnw_config.json
{
"api_key": "YOUR-API-KEY",
"project_id": "moonbeam",
"client_id": "YOUR-SERVER-NAME-parachain"
"metrics_host": "http://127.0.0.1:9615"
}
nano /var/lib/gantree/relay/.gnw_config.json
{
"api_key": "YOUR-API-KEY",
"project_id": "moonbeam",
"client_id": "YOUR-SERVER-NAME-relay",
"metrics_host": "http://127.0.0.1:9616"
}
"YOUR-API-KEY" - ваш API ключ в Gantree
"YOUR-SERVER-NAME-relay" - имя вашей ноды-наблюдателя (у каждого наблюдателя должно быть разное имя)
"PCK-key" больше не нужен
nano /etc/systemd/system/gantree-parachain.service
[Unit]
Description=Gantree Node Watchdog Parachain
After=network.target
[Service]
WorkingDirectory=/var/lib/gantree/parachain
Type=simple
Restart=always
ExecStart=/usr/local/bin/gantree_node_watchdog
[Install]
WantedBy=multi-user.target
nano /etc/systemd/system/gantree-relay.service
[Unit]
Description=Gantree Node Watchdog Relay
After=network.target
[Service]
WorkingDirectory=/var/lib/gantree/relay
Type=simple
Restart=always
ExecStart=/usr/local/bin/gantree_node_watchdoggantree-relay
[Install]
WantedBy=multi-user.target
sudo systemctl enable gantree-parachain
sudo systemctl start gantree-parachain && journalctl -f -u gantree-parachain
sudo systemctl enable gantree-relay
sudo systemctl start gantree-relay && journalctl -f -u gantree-relay

Стать коллатором

// Simple script to get candidate pool size
const candidatePool = await api.query.parachainStaking.candidatePool();
console.log(`Candidate pool size is: ${candidatePool.length}`);
curl http://127.0.0.1:9933 -H \
"Content-Type:application/json;charset=utf-8" -d \
'{
"jsonrpc":"2.0",
"id":1,
"method":"author_rotateKeys",
"params": []
}'

--

--

--

https://github.com/Distributed-Validators-Synctems/Self-Identity/blob/main/cyberG.md

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
cyberG

cyberG

https://github.com/Distributed-Validators-Synctems/Self-Identity/blob/main/cyberG.md

More from Medium

Synapse Network — a next generation anti-bot solution. Why do we need anti-bot technology?

Byto Launch V2

Parrot Protocol Developer Updates 01/13/2022 )

Vee.Finance Weekly Report 01/24