2015-06-25 06:19:17 +02:00
|
|
|
# Sourced by other scripts
|
2015-06-30 05:18:06 +02:00
|
|
|
|
2016-11-08 12:23:55 +01:00
|
|
|
# Suppress sync if we can, for speedup.
|
|
|
|
if which eatmydata >/dev/null; then EATMYDATA=eatmydata; fi
|
|
|
|
|
2016-04-11 09:02:43 +02:00
|
|
|
STYLE=bitcoin
|
2016-11-08 12:26:55 +01:00
|
|
|
DATADIR=/tmp/bitcoin-lightning$VARIANT
|
2016-04-11 09:02:43 +02:00
|
|
|
CLI="bitcoin-cli -datadir=$DATADIR"
|
|
|
|
REGTESTDIR=regtest
|
2016-11-08 12:23:55 +01:00
|
|
|
DAEMON="$EATMYDATA bitcoind -datadir=$DATADIR"
|
2015-06-25 06:19:17 +02:00
|
|
|
|
2016-08-26 08:14:04 +02:00
|
|
|
findport()
|
|
|
|
{
|
|
|
|
PORT=$1
|
2016-11-08 12:26:55 +01:00
|
|
|
# Give two ports per variant.
|
|
|
|
if [ x"$2" != x ]; then PORT=$(($PORT + $2 * 2)); fi
|
2016-08-26 08:14:04 +02:00
|
|
|
while netstat -ntl | grep -q ":$PORT "; do PORT=$(($PORT + 1)); done
|
|
|
|
echo $PORT
|
|
|
|
}
|
2015-06-25 06:19:17 +02:00
|
|
|
#PREFIX="valgrind --vgdb-error=1"
|