Purges the cache of chain net ledger and recalculates it from chain file
CLI Example
Command syntax:
net ledger reload
-net <chain_net_name>
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
Example:
Command:
cellframe-node-cli net ledger reload
-net foobar
Response:
"None"
JSON-RPC Example
Command:
curl --unix-socket /opt/cellframe-node/var/run/node_cli
-X POST http://localhost/connect
-d '{"method":"net", "params":["net;-net;foobar;ledger;reload"], "id":"1"}'
Response:
{
"type": 2,
"result": [
{}
],
"errors": null,
"id": 1
}