Processes a datum with the specified hash for the selected chain in the specified network. Also starts a consensus round for a provided datum

warning

  • If datum data doesn’t satisfy consensus requirements, it will be discarded.
  • Function “PROC” is available only for Root Nodes in zerochain and Master Nodes in mainchain.
  • This command will process transaction with any comission! Parameter minimum_comission will not be taken into account!

You can also use enable auto-processing function in general configuration file - [[Cellframe Node General Config#Section [mempool|mempool section]]

CLI Example

Command syntax:

mempool proc 
-net <net_name> 
-chain <chain_name> 
-datum <datum_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
-datum - hash of the datum
-chain - name of the chain

Example:

Command:

cellframe-node-cli mempool proc 
-net foobar 
-chain main 
-datum 0x68960FE80F5A31328EC15AAF117F4A4C24573BC3B965877FA840FE7A13EC2BDC

Response:

        datum:
            hash: 0x68960FE80F5A31328EC15AAF117F4A4C24573BC3B965877FA840FE7A13EC2BDC
            type: DATUM_CA
            ts_created:
                time_stamp: 1711531774
                str: Wed Mar 27 09:29:34 2024
            data_size: 1285

        verify:
            isProcessed: true
            notice: Removed datum from mempool.

JSON-RPC Example

Command:

curl --unix-socket /opt/cellframe-node/var/run/node_cli 
-X POST http://localhost/connect 
-d '{"method":"mempool", "params":["mempool;proc;-net;foobar;-chain;main;-datum;0x68960FE80F5A31328EC15AAF117F4A4C24573BC3B965877FA840FE7A13EC2BDC"], "id":"1"}'

Response:

{
  "type": 2,
  "result": [
    {
      "datum": {
        "hash": "0x68960FE80F5A31328EC15AAF117F4A4C24573BC3B965877FA840FE7A13EC2BDC",
        "type": "DATUM_CA",
        "ts_created": {
          "time_stamp": 1711531823,
          "str": "Wed Mar 27 09:30:23 2024\n"
        },
        "data_size": 1285
      },
      "verify": {
        "isProcessed": true,
        "notice": "Removed datum from mempool."
      }
    }
  ],
  "errors": null,
  "id": 1
}