Skip to content

Instantly share code, notes, and snippets.

@erikd
Last active April 30, 2020 08:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erikd/15ab104eb1a9eae33d3ca17ccc4eb617 to your computer and use it in GitHub Desktop.
Save erikd/15ab104eb1a9eae33d3ca17ccc4eb617 to your computer and use it in GitHub Desktop.
#!/bin/bash -e
cabal build cardano-cli cardano-node cardano-cluster
CARDANO_CLI=$(find dist-newstyle/ -type f -name cardano-cli)
CARDANO_CLUSTER=$(find dist-newstyle/ -type f -name cardano-cluster)
CARDANO_NODE=$(find dist-newstyle/ -type f -name cardano-node)
echo "cli: ${CARDANO_CLI}"
echo "node: ${CARDANO_NODE}"
echo "cluster: ${CARDANO_CLUSTER}"
kes_duration=100
rm -rf shelley/
mkdir -p shelley/
cp cardano-cli/test/cli/create-genesis/data/genesis.spec.json shelley/
${CARDANO_CLUSTER}
${CARDANO_NODE} \
run \
--host-addr 127.0.0.1 \
--port 3003 \
--config config.yaml \
--database-path state-node-mainnet/db-mainnet \
--socket-path state-node-mainnet/node.socket \
--topology topology.yaml \
--shelley-kes-key shelley/node-kes.skey \
--shelley-vrf-key shelley/node-vrf.skey \
--shelley-operational-certificate shelley/op-cert-output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment