Changes current network operational state: [online|offline] or forces it to start a syncronization process
CLI Example
Command syntax:
net go {online | offline | sync}
-net <chain net name>
[-mode {update | all}]
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
-mode - "update" (by default if only new chains and databases are updated) or "all" (updates everithing from zero) (optional)
go {online|offline|sync} - turns on connections\ turns off connections\ synchronization only
Example:
Command:
cellframe-node-cli net go sync
-net foobar
Response:
net: foobar
current: NET_STATE_ONLINE
start: resynchronizing
JSON-RPC Example
Command:
curl --unix-socket /opt/cellframe-node/var/run/node_cli
-X POST http://localhost/connect
-d '{"method":"net", "params":["net;go;sync;-net;foobar"], "id":"1"}'
Response:
{
"type": 2,
"result": [
{
"net": "foobar",
"current": "NET_STATE_ONLINE",
"start": "resynchronizing"
}
],
"errors": null,
"id": 1
}