運行驗證器
了解如何運行驗證節點。
先決條件
- 下载驗證節點程序
- 切换到root用户
支持的作業系統
- Centos 7
📣 提示 : 需要切換到root用戶再執行以下命令。。
解压驗證節點程序
unzip xxxx.zip
設定權限
cd dpos_linux
chmod u+x init.sh
執行安裝和初始化
📣 提示 : init.sh只需要執行一次即可
./init.sh
启动驗證節點程序
./start.sh
停止驗證節點程序
./stop.sh
查看驗證節點状态
./status.sh
輸出內容如下:
其中 Active: active(running)
表示服務正在運行中
Detail Info 中的 SyncInfo.latest_block_height
為當前同步到本地的區塊高度
----------------------------------------------------------------------------------------------
Dst Blockchain Active: active (running) since Thu 2023-11-23 17:11:00 CST; 17h ago
----------------------------------------------------------------------------------------------
Detail Info
{
"NodeInfo": {
"protocol_version": {
"p2p": "8",
"block": "11",
"app": "0"
},
"id": "a5a01042711e08f779c90c0e089b02fcc929b0b7",
"listen_addr": "tcp://0.0.0.0:26656",
"network": "daodst_7777-1",
"version": "0.34.24",
"channels": "40202122233038606100",
"moniker": "localtestnet",
"other": {
"tx_index": "on",
"rpc_address": "tcp://0.0.0.0:26657"
}
},
"SyncInfo": {
"latest_block_hash": "01C697478D77D90C2574D46E9DE324A891A5E56B3957409A299CADB33F11B611",
"latest_app_hash": "50FCFD03EFD60BECAD7B1E9239B38C1C98B279901BE8BDFC2194BF919E834663",
"latest_block_height": "346331",
"latest_block_time": "2023-11-15T21:52:27.506694104Z",
"earliest_block_hash": "F86D8282C9DA9311A623C63FF127D8C0D80D24A1A8BBC4B2A2EFA6DC215BAF0E",
"earliest_app_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"earliest_block_height": "1",
"earliest_block_time": "2023-10-26T02:19:50.6593807Z",
"catching_up": true
},
"ValidatorInfo": {
"Address": "B530BC0E192CF798AF0AE1166F72713CAB1829FB",
"PubKey": {
"type": "tendermint/PubKeyEd25519",
"value": "eWAhNr6hJG07OKPC3fVrZAImTxFZCExCrfEbB4FFu8M="
},
"VotingPower": "0"
}
}