ligo/test/launch_daemon.sh

20 lines
340 B
Bash
Raw Normal View History

2016-09-08 21:13:10 +04:00
#! /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 $@