Node
April 11, 2022
Подготовка сервера и удаление старой ноды Archway
Подготовка сервера
# update if needed sudo apt update && sudo apt upgrade -y # packages sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu gcc git jq chrony liblz4-tool -y # install GO 1.17.2 ver="1.17.2" cd $HOME wget "<https://golang.org/dl/go$ver.linux-amd64.tar.gz>" sudo rm -rf /usr/local/go sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz" rm "go$ver.linux-amd64.tar.gz" echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile source $HOME/.bash_profile go version # go version go1.17.2 linux/amd64
Удаляем augusta-1
# full node delete sudo systemctl stop archwayd sudo systemctl disable archwayd rm /etc/systemd/system/archwayd.service sudo systemctl daemon-reload cd $HOME rm -rf .archway archway rm -rf $(which archwayd)
Устанавливаем torii-1
# clone repo git clone <https://github.com/archway-network/archway> cd archway git checkout main make install archwayd version # "0.0.5" cd $HOME # set vars ARCHWAY_CHAIN="torii-1" ARCHWAY_MONIKER="**YOUR_MONIKER_NAME**" # come up with your validator name ARCHWAY_WALLET="**ARCHWAY_WALLET**" echo 'export ARCHWAY_CHAIN='${ARCHWAY_CHAIN} >> $HOME/.bash_profile echo 'export ARCHWAY_MONIKER='${ARCHWAY_MONIKER} >> $HOME/.bash_profile echo 'export ARCHWAY_WALLET='${ARCHWAY_WALLET} >> $HOME/.bash_profile source $HOME/.bash_profile # init archwayd init ${ARCHWAY_MONIKER} --chain-id $ARCHWAY_CHAIN # create keys archwayd keys add $ARCHWAY_WALLET **# SAVE MNEMONIC FROM OUTPUT NOW!** # CREATE GENTX # get penultimate_genesis wget -O $HOME/.archway/config/genesis.json "<https://raw.githubusercontent.com/archway-network/testnets/main/torii-1/penultimate_genesis.json>" # add gen acc archwayd add-genesis-account $(archwayd keys show $ARCHWAY_WALLET -a) 1001000utorii # create gentx (set any commission and delegation amount you want) archwayd gentx $ARCHWAY_WALLET 1000000utorii \\ --commission-rate=0.1 \\ --commission-max-rate=0.1 \\ --commission-max-change-rate=0.1 \\ --pubkey $(archwayd tendermint show-validator) \\ --chain-id=torii-1 \\ --moniker="${ARCHWAY_MONIKER}" # OUTPUT EXAMPLE # Genesis transaction written to "~/.archway/config/gentx/**gentx-7fba3a5XXXXXXXXXXXXXXXXXXXxxxxXXXXXXX1.json**" **DOWNLOAD AND BACKUP $HOME/.archway/config/priv_validator_key.json NOW!** # Push PR manually ========================================================== # Create Pull Request to this repository - # <https://github.com/archway-network/testnets/tree/main/torii-1/gentx> # 1. create file with name **gentx-7fba3a5XXXXXXXXXXXXXXXXXXXxxxxXXXXXXX1.json** # 2. submit PR ****# ===========================================================================
Как подтвердить Pull Request (PR)
1. Откройте ссылку в браузере и выберете "Create new file"
https://github.com/archway-network/testnets/tree/main/torii-1/gentx
2. Скопируйте имя и расширение json файла.
3. Вставьте на github (В поле file name)
4. выведите ваш json в терминале
cat $HOME/.archway/config/gentx/gentx-7fba3a5XXXXXXXXXXXXXXXXXXXxxxxXXXXXXX1.json"
5. Скопируйте всё от { и до }, включая сами скобочки.
6. Вставьте в одну линию в гитхаб (в поле file content)
7. Нажмите зелёную кнопку “Propose new file”
8. Нажмите “Create pull request”
9. Нажмите “Create pull request again” Можно написать всё что угодно в заголовок и комментарий, или оставить по умолчанию.
10. Готово!
https://github.com/archway-network/testnets/pull/XXXX
Это ваша ссылка на запрос. Где XXXX будут ваши данные.