ligo/test/launch_daemon.sh
2016-09-08 19:29:33 -07:00

20 lines
340 B
Bash
Executable File

#! /bin/sh
set -e
DIR=$(dirname "$0")
cd "${DIR}"
CLIENT_DIR=$(mktemp -d /tmp/tezos_client.XXXXXXXXXX)
cleanup() {
rm -fr ${CLIENT_DIR}
}
trap cleanup EXIT QUIT INT
# export LWT_LOG="client.endorsement -> info; client.mining -> info"
CLIENT="../tezos-client -base-dir ${CLIENT_DIR}"
${CLIENT} bootstrap
${CLIENT} launch daemon $@