Start the Blockchain node
Now we have everything we require to start the node, we will keep all the config files below ready on server to spin the node.
Edit config file
This is sample config file which can be edit as per business and security requirements:
cat >etc/config.ini <<'EOT'
producer-name = PRODUCER_NAME
signature-provider=PUBLIC_KEY=KEY:PRIVATE_KEY
enable-stale-production = true
http-server-address = 0.0.0.0:8888
p2p-listen-endpoint = 0.0.0.0:9851
access-control-allow-origin = *
http-validate-host = false
contracts-console = true
verbose-http-errors = true
plugin = eosio::chain_plugin
plugin = eosio::chain_api_plugin
plugin = eosio::producer_plugin
plugin = eosio::producer_api_plugin
plugin = eosio::http_plugin
plugin = eosio::history_api_plugin
plugin = eosio::history_plugin
plugin = eosio::state_history_plugin
plugin = eosio::net_plugin
trace-history = true
chain-state-history = true
trace-history-debug-mode = true
state-history-endpoint = 0.0.0.0:8081
EOTCreate log file
Edit Genesis file
This is sample genesis file, where we need to edit only three things, initial_timestamp, initial_key and initial_chain_id.
Create systemd
systemd service manager will take care of on-demand starting of daemons.
Start the node
Finally we are ready to spin the node, on entering below command we should have our new private-net node up and running and producing blocks.
Last updated
Was this helpful?