Validators
Note
This information can be used by STRATO node administrators.
Make Nodes the Validators
Info
For detailed information about validators and their management, see PBFT Consensus - Validator Nodes.
In previous topic, we covered the deployment of a 4 node network with the root node (Node 1) being the only validator.
Follow these steps to make the rest of nodes in the network validator nodes:
-
Make Node 2 the validator. Execute on Node 1 (because it is listed in
blockstanbulAdmins
):./strato --blockstanbul-vote --recipient=<node2_address> --nonce=100 --nodes=node1.example.com:8080 --https
-
Wait for the validator node to confirm the vote and the address of Node 2 to appear in the list of validators. This may take up to 1 minute.
To monitor the list of validators, poll:
./strato --get-validators
-
Vote-in the other two nodes. Note the hosts of new validators being added in --nodes for every new node being added:
Note
Note the increased nonce for each of the blockstanbul-vote commands being called. The nonce for a given vote must be greater than the previous greatest nonce in the network, with the addition of the number of nodes listed in the --nodes parameter in the latest vote.
./strato --blockstanbul-vote --recipient=<node3_address> --nonce=150 --nodes=node1.example.com:8080,node2.example.com:8080 --https # Keep polling the validators list until third validator is added: ./strato --get-validators ./strato --blockstanbul-vote --recipient=<node4_address> --nonce=200 --nodes=node1.example.com:8080,node2.example.com:8080,node3.example.com:8080 --https # Keep polling the validators list until third validator is added: ./strato --get-validators