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