Syncronyzes GDB, chains or everything
CLI Example
Command syntax:
net sync {all | gdb | chains}
-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)
sync {all|gdb|chains} - syncronizes all\ only GDB\ only chains
Example:
Command:
cellframe-node-cli net sync chains
-net foobar
Response:
state_machine:
current: NET_STATE_ONLINE
requested: SYNC_CHAINS
JSON-RPC Example
Command:
curl --unix-socket /opt/cellframe-node/var/run/node_cli
-X POST http://localhost/connect
-d '{"method":"net", "params":["net;sync;chains-net;foobar"], "id":"1"}'
Response:
{
"type": 2,
"result": [
{
"state_machine": {
"current": "NET_STATE_LINKS_CONNECTING",
"requested": "SYNC_CHAINS"
}
}
],
"errors": null,
"id": 1
}