2015-06-25 06:19:17 +02:00
|
|
|
# Sourced by other scripts
|
2015-06-30 05:18:06 +02:00
|
|
|
|
2016-04-11 09:02:43 +02:00
|
|
|
STYLE=bitcoin
|
|
|
|
DATADIR=/tmp/bitcoin-lightning
|
|
|
|
CLI="bitcoin-cli -datadir=$DATADIR"
|
|
|
|
REGTESTDIR=regtest
|
|
|
|
DAEMON="bitcoind -datadir=$DATADIR"
|
|
|
|
if grep ^FEATURES ../Makefile | cut -d'#' -f1 | grep -q BIP68; then
|
2015-09-30 03:24:11 +02:00
|
|
|
SEQ_ENFORCEMENT=true
|
2016-04-11 09:02:43 +02:00
|
|
|
else
|
2015-09-30 03:24:11 +02:00
|
|
|
SEQ_ENFORCEMENT=false
|
2015-08-08 07:32:19 +02:00
|
|
|
fi
|
2015-06-25 06:19:17 +02:00
|
|
|
|
2016-08-26 08:14:04 +02:00
|
|
|
findport()
|
|
|
|
{
|
|
|
|
PORT=$1
|
|
|
|
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"
|