mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-10 07:37:05 +01:00
b22bdfcbe8
This means we don't get confused if a testnet bitcoind already running. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
21 lines
435 B
Bash
21 lines
435 B
Bash
# Sourced by other scripts
|
|
|
|
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
|
|
SEQ_ENFORCEMENT=true
|
|
else
|
|
SEQ_ENFORCEMENT=false
|
|
fi
|
|
|
|
findport()
|
|
{
|
|
PORT=$1
|
|
while netstat -ntl | grep -q ":$PORT "; do PORT=$(($PORT + 1)); done
|
|
echo $PORT
|
|
}
|
|
#PREFIX="valgrind --vgdb-error=1"
|