mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-10 07:37:05 +01:00
8477bd5a5f
This means running 3 bitcoinds, which is slow enough to start on my laptop that I need to increase the startup wait for 30 to 60 seconds, and similarly the test.sh check loop. Before: real 13m42.868s After: real 8m19.563s (make -j3) Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
21 lines
525 B
Bash
21 lines
525 B
Bash
# Sourced by other scripts
|
|
|
|
# Suppress sync if we can, for speedup.
|
|
if which eatmydata >/dev/null; then EATMYDATA=eatmydata; fi
|
|
|
|
STYLE=bitcoin
|
|
DATADIR=/tmp/bitcoin-lightning$VARIANT
|
|
CLI="bitcoin-cli -datadir=$DATADIR"
|
|
REGTESTDIR=regtest
|
|
DAEMON="$EATMYDATA bitcoind -datadir=$DATADIR"
|
|
|
|
findport()
|
|
{
|
|
PORT=$1
|
|
# Give two ports per variant.
|
|
if [ x"$2" != x ]; then PORT=$(($PORT + $2 * 2)); fi
|
|
while netstat -ntl | grep -q ":$PORT "; do PORT=$(($PORT + 1)); done
|
|
echo $PORT
|
|
}
|
|
#PREFIX="valgrind --vgdb-error=1"
|