From cccb9f1d29b085827c94754f684b4cc7181eb717 Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Tue, 19 Dec 2023 12:51:48 +0200 Subject: [PATCH] CI: Bump bitcoind to 26.0 --- .github/workflows/tests.yml | 2 +- tests/functional/inc.setup.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 00ed681..1ea804e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,7 +6,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - bitcoind-version: ["0.17.2", "24.0"] + bitcoind-version: ["0.17.2", "26.0"] os: [macos-latest, ubuntu-latest] steps: - uses: actions/checkout@v3 diff --git a/tests/functional/inc.setup.sh b/tests/functional/inc.setup.sh index 88b8b07..8b65534 100644 --- a/tests/functional/inc.setup.sh +++ b/tests/functional/inc.setup.sh @@ -22,6 +22,9 @@ rm -rf "$bitcoin_test_datadir" mkdir "$bitcoin_test_datadir" echo -e "[regtest]\nrpcuser=bitcoinrpc\nrpcpassword=123456abcdef" \ > "$bitcoin_test_datadir/bitcoin.conf" +if [[ "$($bitcoind -version | grep -Eo 'v[0-9]+')" == "v26" ]]; then + echo "deprecatedrpc=create_bdb" >> "$bitcoin_test_datadir}/bitcoin.conf" +fi $bitcoind -daemon || exit 1 # Wait until bitcoind has started properly while ! $bitcoin_cli getblockchaininfo 2> /dev/null; do sleep 0.1; done