Skip to content

Commit 6e91a74

Browse files
committed
test: Add -fallbackfee argument for >= 0.20.0
1 parent cfab9ad commit 6e91a74

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

integration_test/run.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ if bitcoind -version | grep -q "0\.19\|0\.20"; then
2323
BLOCKFILTERARG="-blockfilterindex=1"
2424
fi
2525

26-
bitcoind -regtest $BLOCKFILTERARG \
26+
FALLBACKFEEARG=""
27+
if bitcoind -version | grep -q "0\.20"; then
28+
FALLBACKFEEARG="-fallbackfee=0.00001000"
29+
fi
30+
31+
bitcoind -regtest $BLOCKFILTERARG $FALLBACKFEEARG \
2732
-datadir=${TESTDIR}/2 \
2833
-connect=127.0.0.1:12348 \
2934
-rpcport=12349 \
@@ -34,7 +39,10 @@ PID2=$!
3439
# Let it connect to the other node.
3540
sleep 5
3641

37-
RPC_URL=http://localhost:12349 RPC_COOKIE=${TESTDIR}/2/regtest/.cookie cargo run
42+
RPC_URL=http://localhost:12349 \
43+
RPC_COOKIE=${TESTDIR}/2/regtest/.cookie \
44+
cargo run
45+
3846
RESULT=$?
3947

4048
kill -9 $PID1 $PID2

0 commit comments

Comments
 (0)