Adds or removes validator by its signature public key hash to list of validators allowed to work in emergency mode

CLI Example

Command syntax:

esbocs emergency_validators {add|remove} 
-net <net_name> 
[-chain <chain_name>] 
-cert <poa_cert_name> 
-pkey_hash <validator_pkey_hash>

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 
-pkey_hash - public key hash of the validator

Example:

Command:

cellframe-node-cli esbocs emergency_validators add 
-net riemann 
-chain main 
-cert riemann.root.pvt.0 
-pkey_hash 0x327DF692D5918F7A62BC478B04E10892084DDCA801EAF35710BD40C9DCEBF95D

Response:

Emergency validator: 0x327DF692D5918F7A62BC478B04E10892084DDCA801EAF35710BD40C9DCEBF95D
 
        status: added
 
        Decree hash: 0x26265CE750F525C2F4455FDCAC4E7E467A12CF0E01832DAF0568168B662295E3

JSON-RPC Example

Command:

curl --unix-socket /opt/cellframe-node/var/run/node_cli 
-X POST http://localhost/connect 
-d '{"method":"esbocs", "params":["esbocs;emergency_validators;add;-net;riemann;-chain;main;-cert;riemann.root.pvt.0;-pkey_hash;0x327DF692D5918F7A62BC478B04E10892084DDCA801EAF35710BD40C9DCEBF95D"], "id":"1"}'

Response:

{
  "type"2,
  "result": [
    {
      "Emergency validator""0x327DF692D5918F7A62BC478B04E10892084DDCA801EAF35710BD40C9DCEBF95D",
      "status""added",
      "Decree hash""0xC94C83BBA517053BAA8D0A82753EC5263B5B66D97B1C0FED358B383F2AFF78AB"
    }
  ],
  "errors"null,
  "id"1
}