Completes the current new round, verifies it and publishes new events in the chain.

Command syntax:

dag round complete 
-net <net_name> 
-chain <chain_name>

Options:

-net - name of the Cellframe network. The list of networks can be found in the <Config_dir> \ etc \ network folder folder or received by the Cellframe-Node-Cli Net List command
-chain - the name of Chain. The list of chain can be found in the directory <Config_dir> \ etc \ network \ <network_name> or get the Cellframe-Node-App Net List Chains command

CLI Example

Command:

cellframe-node-cli dag round complete 
-net foobar 
-chain zerochain

Response:

Completing round:

Event 0xE75410319706F528F76244B99083EA92E87E3387C0204CC01C9B83492788E35E verification passed

Event 0xE75410319706F528F76244B99083EA92E87E3387C0204CC01C9B83492788E35E added in chain successfully

JSON-RPC Example

JSON-RPC Request - DAG ROUND COMPLETE

Completes the current new round, verifies it and publishes new events in the chain.

Request Structure

JSON object:

{
  "method": "dag",
  "subcommand": ["round","complete"],
  "arguments": {
    "net": "network_name",
    "chain": "chain_name"
  },
  "id": "1"
}

Parameters: net (network_name) - name of the Cellframe Network. The list of networks can be found in the <Config_dir> \ etc \ network folder or received using - Node Command - NET LIST chain - the name of chain (main or zerochain)

If you make a request in the Cellframe network, use parameter chain:zerochain.

Request Structure

JSON object:

curl --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d '
{
  "method": "dag",
  "subcommand": ["round","complete"],
  "arguments": {
    "net": "foobar",
    "chain": "zerochain"
  },
  "id": "1"
}'
 

Response:

{
  "type": 0,
  "result": "Completing round:\nEvent 0xEC910C7514AAE7E92D92FFC6EEC7DB88AB262625083208CCE659133EC1E60F74 verification passed\nEvent 0xEC910C7514AAE7E92D92FFC6EEC7DB88AB262625083208CCE659133EC1E60F74 added in chain successfully\n",
  "errors": null,
  "id": 1
}
Link to original