Run the validator
Learn how to run a validator node.
prerequisites
- Download the verification node program
- Switch to root user
Supported operating systems
- Centos 7
📣 Tip: You need to switch to the root user and execute the following commands.
Unzip the verification node program
unzip xxxx.zip
Setting permissions
cd dpos_linux
chmod u+x init.sh
Perform installation and initialization
📣 Tip: init.sh only needs to be executed once
./init.sh
Start the verification node program
./start.sh
Stop the verification node program
./stop.sh
View verification node status
./status.sh
The output content is as follows:
in Active: active(running)
Indicates that the service is running
Detail Info in SyncInfo.latest_block_height
It is the height of the block currently synchronized to the local
----------------------------------------------------------------------------------------------
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"
}
}