|
|
@ -8,6 +8,12 @@ CLI="bitcoin-cli -datadir=$DATADIR" |
|
|
|
REGTESTDIR=regtest |
|
|
|
DAEMON="$EATMYDATA bitcoind -datadir=$DATADIR" |
|
|
|
|
|
|
|
PREFIX=$EATMYDATA |
|
|
|
|
|
|
|
# Always use valgrind if available (unless NO_VALGRIND=1 set) |
|
|
|
if which valgrind >/dev/null; then :; else NO_VALGRIND=1; fi |
|
|
|
[ -n "$NO_VALGRIND" ] || PREFIX="$EATMYDATA valgrind -q --error-exitcode=7" |
|
|
|
|
|
|
|
findport() |
|
|
|
{ |
|
|
|
PORT=$1 |
|
|
@ -16,4 +22,3 @@ findport() |
|
|
|
while netstat -ntl | grep -q ":$PORT "; do PORT=$(($PORT + 1)); done |
|
|
|
echo $PORT |
|
|
|
} |
|
|
|
#PREFIX="valgrind --vgdb-error=1" |
|
|
|