Executing Node

1. Bios_Boot_Node folder and create genesis.json

~# cd $HOME
~# mkdir Bios_Boot_Node
~# cd Bios_Boot_Node
~/Bios_Boot_Node# touch genesis.json
~/Bios_Boot_Node# vi genesis.json
{
"initial_timestamp": "2020-07-15T00:00:00.000",
"initial_key": "[eosio Public Key]",
"initial_configuration": {
        "max_block_net_usage": 1048576,
        "target_block_net_usage_pct": 1000,
        "max_transaction_net_usage": 524288,
        "base_per_transaction_net_usage": 12,
        "net_usage_leeway": 500,
        "context_free_discount_net_usage_num": 20,
        "context_free_discount_net_usage_den": 100,
        "max_block_cpu_usage": 200000,
        "target_block_cpu_usage_pct": 1000,
        "max_transaction_cpu_usage": 150000,         
        "max_transaction_lifetime": 3600,
        "deferred_trx_expiration_window": 600,
        "max_transaction_delay": 3888000,
        "max_inline_action_size": 4096,
        "max_inline_action_depth": 4,
        "max_authority_depth": 6,
        "max_generated_transaction_count": 16
},
  "initial_chain_id": "0000000000000000000000000000000000000000000000000000000000000000"
}

For [eosio public key], enter the Public Key which has created in the previous step.

2. create config.ini

3. genesis Node start

For [eosio Public Key], [eosio Private Key], enter the Public Key which has created in the previous step.

4. Node stop

To stop genesis node, write stop.sh on the Shell script file in the directory then execute it.

5. Node restart

If 'genesis node' is stopped, it cannot restart the process by using the created script from '3.bootnode henesis start'. When above script is used, blockchain DB will be initialized and created. To avoid, restart by using --hard-replay-blockchain option of nodeos.

Last updated

Was this helpful?