Aptosでは、報酬付きテストネット (AIT)としてテストネットでのValidatorの運用者に報酬が付与されます。
AIT1 ~ AIT4の合計4期間が用意されており、各期間ごとに参加者数が決められています。
合格者には、24時間以内にAITに接続することが要求され、接続を実施しないと報酬が付与されない仕組みになっています。
ここでは、DockerによりValidatorを構築した人向けにAIT接続方法を解説します。
Node運用に慣れている方や、Engineerの方はなるべく公式サイトを確認ください。
参考 : Connecting to Aptos Incentivized Testnet
2-1-1. サーバにログインする
2-1-2. Rootユーザ (特権ユーザ)になる
sudo su -
cd $HOME
2-1-3. installerをダウンロード & 実行
wget -O connect-ait.sh https://raw.githubusercontent.com/qyeah98/aptos/main/validator/connect-ait.sh && chmod +x connect-ait.sh && ./connect-ait.sh
2-1-4. この画面が出れば完了です
2-2-1. Peer数確認
下記のコマンドを実行
curl 127.0.0.1:9101/metrics 2> /dev/null | grep "aptos_connections{.*\"Validator\".*}"
下記のように0以上になっていることを確認してください
例
aptos_connections{direction="inbound",network_id="Validator",peer_id="2a40eeab",role_type="validator"} 5
aptos_connections{direction="outbound",network_id="Validator",peer_id="2a40eeab",role_type="validator"} 2
2-2-2. Aptos LabsのNodeに接続しているかの確認
下記のコマンドの実行
の箇所を、Aptosより通知を受けたAddressに変更してください
curl 127.0.0.1:9101/metrics 2> /dev/null | grep "aptos_network_peer_connected{.*remote_peer_id=\"<Aptos Peer ID>\".*}"
2-2-3. consensus数の確認
下記のコマンドの実行
curl 127.0.0.1:9101/metrics 2> /dev/null | grep "aptos_consensus_current_round"
再度実行して、数値がカウントアップしていることを確認してください
下記の3つの項目が、補修を受け取るための条件となっています。
AIT1の場合にはテスト期間中に、95%以上の可用性を求められます。
定期的に上記の数値を確認してください。
curl 127.0.0.1:9101/metrics 2> /dev/null | grep "aptos_consensus_proposals_count"
curl 127.0.0.1:9101/metrics 2> /dev/null | grep "aptos_state_sync_version{type=\"synced\"}"
curl 127.0.0.1:9101/metrics 2> /dev/null | grep "aptos_connections"
以上でValidatorのAIT接続は完了です。
Nodeのinstallの際には、私が作成したinstallerを使用しています。
どのように動いているのか興味がある人は、下記のGithubのリンクよりご確認ください。