Checks validator parameters which allow to participate in consensus

Parameters:

VERSION - node version AUTO_PROC - transactions autoprocessing ORDER - availability of order AUTO_ONLINE - regime of automatic network connection AUTO_UPDATE - regime of automatic update DATA_SIGNED - data should be signed FOUND CERT - availability of certificate for signing SIGN CORRECT - signing must be provided by the key which was delegated SUMMARY- if everything is ok - displays “Validator ready”, if not - “There are unresolved issues

All parameters must be enabled for proper work.

CLI Example

Command syntax:

srv_stake check 
-net <net_name> 
-tx <tx_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
-tx - hash of the transaction

Example:

Command:

cellframe-node-cli srv_stake check 
-tx 0x696B2ACF794C48281C500586EAAC9AD5C4F51DD2C301BE685F486DAB4EB2CB84 
-net foobar

Response:

VERSION        |  5.2-463
AUTO_PROC              |  true
ORDER                       |  true
AUTO_ONLINE           |  true
AUTO_UPDATE         |  false
DATA_SIGNED          |  true
FOUND CERT            |  true
SIGN CORRECT        |  true
SUMMARY      |  There are unresolved issues

JSON-RPC Example

Command:

curl -X POST http://rpc.cellframe.net/connect -d '{"method":"srv_stake", "params":["srv_stake;check;-tx;0x696B2ACF794C48281C500586EAAC9AD5C4F51DD2C301BE685F486DAB4EB2CB84;-net;foobar"], "id":"1"}'

Response:


"type": 0,
"result": "-------------------------------------------------\nVERSION \t |  5.2-463 \nAUTO_PROC \t |  true \nORDER \t\t |  true \nAUTO_ONLINE \t |  true \nAUTO_UPDATE \t |  false \nDATA_SIGNED \t |  true \nFOUND CERT \t |  true\nSIGN CORRECT \t |  true\nSUMMARY \t |  There are unresolved issues\n",
"errors": null,
"id": 1
}