View on GitHub
File Changes
then echo "ERROR: genesis ${genesis_file} does not exist!">&1; exit 1; fi

                      
cabal new-build "exe:cardano-cli"
-
genesis_hash="$(cabal new-exec -- cardano-cli --real-pbft print-genesis-hash --genesis-json ${genesis_file})"
+
genesis_hash="$(cabal new-run exe:cardano-cli -- --real-pbft print-genesis-hash --genesis-json ${genesis_file})"

                      
CMD=`find dist-newstyle/ -type f -name "cardano-node"`
test -n "${CMD}" || {
}

                      

                      
-
exec cabal new-exec chairman -- --real-pbft \
+
exec cabal new-run exe:chairman -- --real-pbft \
                                -n 0 -n 1 -n 2 \
                                -k 10 -s 250 \
                                -t 1000 \
#!/bin/sh

                      
-
RUNNER=${RUNNER:-cabal new-exec --}
+
RUNNER=${RUNNER:-cabal new-run exe:cardano-cli --}

                      
genesis="33873"
genesis_root="configuration/${genesis}"
genesis_file="${genesis_root}/genesis.json"
if test ! -f "${genesis_file}"
then echo "ERROR: genesis ${genesis_file} does not exist!">&1; exit 1; fi
-
genesis_hash="$(${RUNNER} cardano-cli --real-pbft print-genesis-hash --genesis-json ${genesis_file})"
+
genesis_hash="$(${RUNNER} --real-pbft print-genesis-hash --genesis-json ${genesis_file})"
from_addr="2cWKMJemoBahGYHvphuM3cmwhgWZmRzPSRX5xdx11A1aJ168wLgRpD7naamfWk4dfQ28c"
from_key="${genesis_root}/delegate-keys.000.key"
default_to_key="${genesis_root}/delegate-keys.001.key"
#!/bin/sh

                      
-
RUNNER=${RUNNER:-cabal new-exec --}
+
RUNNER=${RUNNER:-cabal new-run exe:cardano-cli --}

                      
genesis="33873"
genesis_root="configuration/${genesis}"
genesis_file="${genesis_root}/genesis.json"
if test ! -f "${genesis_file}"
then echo "ERROR: genesis ${genesis_file} does not exist!">&1; exit 1; fi
-
genesis_hash="$(${RUNNER} cardano-cli --real-pbft print-genesis-hash --genesis-json ${genesis_file})"
+
genesis_hash="$(${RUNNER} --real-pbft print-genesis-hash --genesis-json ${genesis_file})"
default_from_key="${genesis_root}/delegate-keys.001.key"
default_to_key="${genesis_root}/delegate-keys.002.key"

                      
#!/bin/sh

                      
-
RUNNER=${RUNNER:-cabal new-run -- cardano-node}
+
RUNNER=${RUNNER:-cabal new-run exe:cardano-node --}
TOPOLOGY=${TOPOLOGY:-"configuration/topology-proxy-follower.json"}

                      
ARGS=(
NETARGS="--slot-duration 2 node -t configuration/simple-topology-dns.json ${ALGO}"
#SCR="./scripts/start-node.sh"
#CMD="stack exec --nix cardano-node --"
-
CMD="cabal new-exec cardano-node --"
+
CMD="cabal new-run exe:cardano-node --"
HOST="127.0.0.1"
HOST6="::1"

                      

                      
# SCR="./scripts/start-node.sh"
# CMD="stack exec --nix cardano-node --"
-
CMD="cabal new-exec cardano-node --"
+
CMD="cabal new-run exe:cardano-node --"

                      
# SPECIAL=""
SPECIAL="--live-view"
)
# SCR="./scripts/start-node.sh"
# CMD="stack exec --nix cardano-node --"
-
CMD=`find dist-newstyle/ -type f -name "cardano-node"`
-
test -n "${CMD}" || {
-
        cabal new-build exe:cardano-node || {
-
                echo "ERROR: couldn't find or cabal new-build exe:cardano-node" >&2
-
                exit 1
-
        }
-
        CMD=`find dist-newstyle/ -type f -name "cardano-node"`
-
}
+
CMD="cabal new-run exe:cardano-node --"
# SPECIAL=""
SPECIAL="--live-view"
HOST="127.0.0.1"
now=`date "+%Y-%m-%d 00:00:00"`

                      
set -x
-
cabal new-run cardano-node -- \
+
cabal new-run exe:cardano-node -- \
    --slot-duration 2 \
    --log-config configuration/log-configuration.yaml \
    node -t configuration/simple-topology.json \
shift

                      
#CMD="stack exec --nix cardano-node -- "
-
CMD="cabal new-exec cardano-cli -- "
+
CMD="cabal new-run exe:cardano-cli -- "

                      
genesis="33873"
genesis_root="configuration/${genesis}"

                      
# CMD="stack exec cardano-node -- "
# CMD="./cardano-node.exe -- "
-
CMD="cabal new-exec cardano-node -- "
+
CMD="cabal new-run exe:cardano-node -- "

                      
NETARGS=(
        --slot-duration 2