Last active
September 6, 2022 21:37
-
-
Save bmatthewshea/0bae078e513da5597cc1d947530ca83f to your computer and use it in GitHub Desktop.
Cardano/ADA Node startup script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Script to start a cardano "block producing"/"pool" node | |
## https://docs.cardano.org/projects/cardano-node/en/latest/stake-pool-operations/start_your_nodes.html | |
## Change "USER" to username needed below | |
# config area: | |
ada_bin_path=/home/USER/.local/bin | |
ada_config_path=/home/USER/.local/etc/cardano-node | |
ada_chain_path=/home/USER/cardano-blocks | |
ada_key_path=${ada_config_path}/keys | |
ada_log_path=${ada_chain_path} | |
ada_public_ip=0.0.0.0 | |
ada_port=3001 | |
#start block producing node | |
${ada_bin_path}/cardano-node run \ | |
--topology ${ada_config_path}/mainnet-topology.json \ | |
--database-path ${ada_chain_path}/db \ | |
--socket-path ${ada_chain_path}/db/node.socket \ | |
--host-addr ${ada_public_ip} \ | |
--port ${ada_port} \ | |
--config ${ada_config_path}/mainnet-config.json \ | |
--shelley-kes-key ${ada_key_path}/kes.skey \ | |
--shelley-vrf-key ${ada_key_path}/vrf.skey \ | |
--shelley-operational-certificate ${ada_key_path}\node.cert \ | |
2>&1 | tee -a ${ada_log_path}/output.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Script to start a cardano 'relay node' | |
## https://docs.cardano.org/projects/cardano-node/en/latest/stake-pool-operations/start_your_nodes.html | |
## Change "USER" to username needed below | |
# config area: | |
ada_bin_path=/home/USER/.local/bin | |
ada_config_path=/home/USER/.local/etc/cardano-node | |
ada_chain_path=/home/USER/cardano-relay | |
ada_log_path=${ada_chain_path} | |
ada_public_ip=0.0.0.0 | |
ada_port=3001 | |
#start node | |
${ada_bin_path}/cardano-node run \ | |
--topology ${ada_config_path}/mainnet-topology.json \ | |
--database-path ${ada_chain_path}/db \ | |
--socket-path ${ada_chain_path}/db/node.socket \ | |
--host-addr ${ada_public_ip} \ | |
--port ${ada_port} \ | |
--config ${ada_config_path}/mainnet-config.json \ | |
2>&1 | tee -a ${ada_log_path}/output.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment