mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 23:54:22 +01:00
test: use random port/rpcport for bitcoind.
This means we don't get confused if a testnet bitcoind already running. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -11,4 +11,10 @@ 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"
|
||||
|
||||
Reference in New Issue
Block a user