cardano-docker/scripts/functions/run_node

17 lines
557 B
Plaintext
Raw Normal View History

2021-02-13 15:19:38 +00:00
function run_node {
source /scripts/init_node_vars
source /scripts/functions/node_info
# Running in loop allows for restarting without restarting the container
while true; do
echo "Starting cardano-node"
node_info
cardano-node run \
--topology ${NODE_PATH}/topology.json \
--database-path ${NODE_PATH}/db \
--socket-path ${CARDANO_NODE_SOCKET_PATH} \
--host-addr ${HOST_ADDR} \
--port ${NODE_PORT} \
--config ${NODE_PATH}/config.json
done
}