diff --git a/daemon/test/scripts/setup.sh b/daemon/test/scripts/setup.sh index e7ada945c..af6208344 100755 --- a/daemon/test/scripts/setup.sh +++ b/daemon/test/scripts/setup.sh @@ -11,10 +11,16 @@ fi rm -rf $DATADIR mkdir $DATADIR +# Find a free port (racy, but hey) +PORT=`findport 18332` +RPCPORT=`findport $(($PORT + 1))` + # Create appropriate config file so cmdline matches. cat > $DATADIR/bitcoin.conf <> $DIR2/config + echo port=`findport 4000` >> $DIR2/config fi if [ -n "$DIFFERENT_FEES" ]; then