Sets minimum quantity of validators for ESBOCS Consensus work in the network

CLI Example

Command syntax:

esbocs min_validators_count set 
-net <net_name> 
[-chain <chain_name>] 
-cert <poa_cert_name> 
-val_count <value>

Options:

-net - name of the Cellframe Network. The list of networks can be found in the <Config_dir> \ etc \ network folder or received by The Cellframe-Node-CLI using command - net list
-chain - the name of Chain. The list of chains can be found in the directory <Config_dir> \ etc \ network \ <network_name> or by the Cellframe-Node-CLI using command - net list chains (optional)
-cert - name of the root node certificate 
-val_count - quantity of validators required for consensus work

Example:

Command:

cellframe-node-cli esbocs min_validators_count set 
-net riemann 
-cert riemann.root.pvt.0 
-val_count 4

Response:

        status: Minimum validators count has been set
 
        decree hash: 0x5750A74AFC72C77C920ADEFFFC780C49F5708446A3C3A68ADBC5EA672991808D

JSON-RPC Example

Command:

curl --unix-socket /opt/cellframe-node/var/run/node_cli 
-X POST http://localhost/connect 
-d '{"method":"esbocs", "params":["esbocs;min_validators_count;set;-net;riemann;-cert;riemann.root.pvt.0;-val_count;4"], "id":"1"}'

Response:

{
  "type"2,
  "result": [
    {
      "status""Minimum validators count has been set",
      "decree hash""0xBA611E933C17CB35147DE87F20AF1316F4FA6560BB6BB229C36A1FCD8B6452B6"
    }
  ],
  "errors"null,
  "id"1
}