Skip to content

Commit

Permalink
Make it easy to specify custom bitcoind / bitcoin-cli for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kristapsk committed Dec 19, 2023
1 parent a76d04f commit 83b2771
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/functional/inc.setup.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
# shellcheck shell=bash

bitcoin_root=""
bitcoin_test_datadir="$(mktemp)"
bitcoin_args=(
"-regtest"
"-datadir=$bitcoin_test_datadir"
)
bitcoind="bitcoind ${bitcoin_args[*]} -fallbackfee=0.0002"
bitcoin_cli="bitcoin-cli ${bitcoin_args[*]}"
if [[ -n $bitcoin_root ]]; then
bitcoind="$bitcoin_root/$bitcoind"
bitcoin_cli="$bitcoin_root/$bitcoin_cli"
fi

# shellcheck disable=SC2034
retval=0
Expand Down

0 comments on commit 83b2771

Please sign in to comment.