Skip to content

Instantly share code, notes, and snippets.

@siegfried
Last active March 7, 2021 17:35
Show Gist options
  • Save siegfried/683be9fb45974d55b328611ca368d35c to your computer and use it in GitHub Desktop.
Save siegfried/683be9fb45974d55b328611ca368d35c to your computer and use it in GitHub Desktop.
Cardano Script
CARDANO_TOPOLOGY=${HOME}/config/mainnet-topology.json
CARDANO_CONFIG=${HOME}/config/mainnet-config.json
CARDANO_PORT=12000
export HOME TERM CARDANO_TOPOLOGY CARDANO_CONFIG CARDANO_PORT
cardano:\
:path=/usr/local/cardano/bin ~/bin /bin /usr/bin:\
:setenv=LD_LIBRARY_PATH=/usr/local/cardano/lib,CARDANO_NODE_SOCKET_PATH=~/node.socket:\
:datasize-max=1536M:\
:datasize-cur=900M:\
:tc=default:
#!/bin/sh
cardano-node run \
--topology ${CARDANO_TOPOLOGY} \
--config ${CARDANO_CONFIG} \
--database-path ${HOME}/db \
--socket-path ${CARDANO_NODE_SOCKET_PATH} \
--host-addr 0.0.0.0 \
--port ${CARDANO_PORT}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment