2015-06-25 13:49:17 +09:30
|
|
|
# Sourced by other scripts
|
2015-06-30 12:48:06 +09:30
|
|
|
|
2016-04-11 16:32:43 +09:30
|
|
|
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 10:54:11 +09:30
|
|
|
SEQ_ENFORCEMENT=true
|
2016-04-11 16:32:43 +09:30
|
|
|
else
|
2015-09-30 10:54:11 +09:30
|
|
|
SEQ_ENFORCEMENT=false
|
2015-08-08 15:02:19 +09:30
|
|
|
fi
|
2015-06-25 13:49:17 +09:30
|
|
|
|
2016-08-26 15:44:04 +09:30
|
|
|
findport()
|
|
|
|
{
|
|
|
|
PORT=$1
|
|
|
|
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"
|