From 3cd7ecc549f0ef64efde90461d919ddea98d95ee Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Thu, 3 Dec 2026 15:18:55 +0100 Subject: [PATCH 1/3] Bump bitcoind to 32.1 in CI and test setups Eclair's `latest` Docker image now refuses to start against Bitcoin Core versions older than 32, so the Eclair integration job fails while waiting for Eclair to come up against our pinned 31.1. Move all CI and test setups to Bitcoin Core 32.1, the latest release, rather than only the Eclair one, so that every job keeps testing against the same bitcoind version. Co-Authored-By: HAL 9000 --- .github/workflows/0fc-integration.yml | 2 +- .github/workflows/benchmarks.yml | 2 +- .github/workflows/hrn-integration.yml | 2 +- .github/workflows/postgres-integration.yml | 2 +- .github/workflows/rust.yml | 2 +- .github/workflows/vss-integration.yml | 2 +- .github/workflows/vss-no-auth-integration.yml | 2 +- scripts/download_bitcoind_electrs.sh | 6 +++--- tests/docker/docker-compose-cln.yml | 2 +- tests/docker/docker-compose-eclair.yml | 2 +- tests/docker/docker-compose-lnd.yml | 2 +- tests/docker/docker-compose.yml | 2 +- 12 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/0fc-integration.yml b/.github/workflows/0fc-integration.yml index 14bb31194a..450f47cfd7 100644 --- a/.github/workflows/0fc-integration.yml +++ b/.github/workflows/0fc-integration.yml @@ -21,7 +21,7 @@ jobs: uses: actions/cache@v4 with: path: bin/bitcoind-${{ runner.os }}-${{ runner.arch }} - key: bitcoind-31.1-${{ runner.os }}-${{ runner.arch }} + key: bitcoind-32.1-${{ runner.os }}-${{ runner.arch }} - name: Enable caching for electrs id: cache-electrs uses: actions/cache@v4 diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index afdf32e779..f8e3be7862 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -25,7 +25,7 @@ jobs: uses: actions/cache@v4 with: path: bin/bitcoind-${{ runner.os }}-${{ runner.arch }} - key: bitcoind-31.1-${{ runner.os }}-${{ runner.arch }} + key: bitcoind-32.1-${{ runner.os }}-${{ runner.arch }} - name: Enable caching for electrs id: cache-electrs uses: actions/cache@v4 diff --git a/.github/workflows/hrn-integration.yml b/.github/workflows/hrn-integration.yml index 37d3462451..43698da6d0 100644 --- a/.github/workflows/hrn-integration.yml +++ b/.github/workflows/hrn-integration.yml @@ -22,7 +22,7 @@ jobs: uses: actions/cache@v4 with: path: bin/bitcoind-${{ runner.os }}-${{ runner.arch }} - key: bitcoind-31.1-${{ runner.os }}-${{ runner.arch }} + key: bitcoind-32.1-${{ runner.os }}-${{ runner.arch }} - name: Enable caching for electrs id: cache-electrs uses: actions/cache@v4 diff --git a/.github/workflows/postgres-integration.yml b/.github/workflows/postgres-integration.yml index a3c8e053af..d9f233d036 100644 --- a/.github/workflows/postgres-integration.yml +++ b/.github/workflows/postgres-integration.yml @@ -44,7 +44,7 @@ jobs: uses: actions/cache@v4 with: path: bin/bitcoind-${{ runner.os }}-${{ runner.arch }} - key: bitcoind-31.1-${{ runner.os }}-${{ runner.arch }} + key: bitcoind-32.1-${{ runner.os }}-${{ runner.arch }} - name: Enable caching for electrs id: cache-electrs uses: actions/cache@v4 diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 750d637f32..edbe8ab815 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -76,7 +76,7 @@ jobs: uses: actions/cache@v4 with: path: bin/bitcoind-${{ runner.os }}-${{ runner.arch }} - key: bitcoind-31.1-${{ runner.os }}-${{ runner.arch }} + key: bitcoind-32.1-${{ runner.os }}-${{ runner.arch }} - name: Enable caching for electrs id: cache-electrs uses: actions/cache@v4 diff --git a/.github/workflows/vss-integration.yml b/.github/workflows/vss-integration.yml index 3b08930273..afc84cff90 100644 --- a/.github/workflows/vss-integration.yml +++ b/.github/workflows/vss-integration.yml @@ -42,7 +42,7 @@ jobs: uses: actions/cache@v4 with: path: bin/bitcoind-${{ runner.os }}-${{ runner.arch }} - key: bitcoind-31.1-${{ runner.os }}-${{ runner.arch }} + key: bitcoind-32.1-${{ runner.os }}-${{ runner.arch }} - name: Enable caching for electrs id: cache-electrs uses: actions/cache@v4 diff --git a/.github/workflows/vss-no-auth-integration.yml b/.github/workflows/vss-no-auth-integration.yml index 4c3432ce88..6e1cf34657 100644 --- a/.github/workflows/vss-no-auth-integration.yml +++ b/.github/workflows/vss-no-auth-integration.yml @@ -42,7 +42,7 @@ jobs: uses: actions/cache@v4 with: path: bin/bitcoind-${{ runner.os }}-${{ runner.arch }} - key: bitcoind-31.1-${{ runner.os }}-${{ runner.arch }} + key: bitcoind-32.1-${{ runner.os }}-${{ runner.arch }} - name: Enable caching for electrs id: cache-electrs uses: actions/cache@v4 diff --git a/scripts/download_bitcoind_electrs.sh b/scripts/download_bitcoind_electrs.sh index dedf511bad..cc6f46de7c 100755 --- a/scripts/download_bitcoind_electrs.sh +++ b/scripts/download_bitcoind_electrs.sh @@ -10,17 +10,17 @@ HOST_PLATFORM="$(rustc --version --verbose | grep "host:" | awk '{ print $2 }')" ELECTRS_DL_ENDPOINT="https://github.com/RCasatta/electrsd/releases/download/electrs_releases" ELECTRS_VERSION="esplora_a33e97e1a1fc63fa9c20a116bb92579bbf43b254" BITCOIND_DL_ENDPOINT="https://bitcoincore.org/bin/" -BITCOIND_VERSION="31.1" +BITCOIND_VERSION="32.1" if [[ "$HOST_PLATFORM" == *linux* ]]; then ELECTRS_DL_FILE_NAME=electrs_linux_"$ELECTRS_VERSION".zip ELECTRS_DL_HASH="865e26a96e8df77df01d96f2f569dcf9622fc87a8d99a9b8fe30861a4db9ddf1" BITCOIND_DL_FILE_NAME=bitcoin-"$BITCOIND_VERSION"-x86_64-linux-gnu.tar.gz - BITCOIND_DL_HASH="b80d9c3e04da78fb6f0569685673418cf686fadba9042d926d13fb87ff503f9e" + BITCOIND_DL_HASH="61545c17c3120fb7412f896d248b11993af04ec8817aad3649c55b2afb044963" elif [[ "$HOST_PLATFORM" == *darwin* ]]; then ELECTRS_DL_FILE_NAME=electrs_macos_"$ELECTRS_VERSION".zip ELECTRS_DL_HASH="2d5ff149e8a2482d3658e9b386830dfc40c8fbd7c175ca7cbac58240a9505bcd" BITCOIND_DL_FILE_NAME=bitcoin-"$BITCOIND_VERSION"-x86_64-apple-darwin.tar.gz - BITCOIND_DL_HASH="bc506958d0f387c1ea770bdc7c7192a505fa645ff62cabcc7761fa7eb89e867e" + BITCOIND_DL_HASH="53b1e6ffd92843ca82ef4a737d7a53cb0a9fab15816a417a41f12fc954071447" else printf "\n\n" echo "Unsupported platform: $HOST_PLATFORM Exiting.." diff --git a/tests/docker/docker-compose-cln.yml b/tests/docker/docker-compose-cln.yml index 0f226f304f..8da30f921c 100644 --- a/tests/docker/docker-compose-cln.yml +++ b/tests/docker/docker-compose-cln.yml @@ -1,6 +1,6 @@ services: bitcoin: - image: blockstream/bitcoind:31.1 + image: blockstream/bitcoind:32.1 platform: linux/amd64 command: [ diff --git a/tests/docker/docker-compose-eclair.yml b/tests/docker/docker-compose-eclair.yml index 29ee66b40f..ae98ae2e01 100644 --- a/tests/docker/docker-compose-eclair.yml +++ b/tests/docker/docker-compose-eclair.yml @@ -5,7 +5,7 @@ services: # causing Eclair to fall behind the chain tip. Host networking avoids # this by keeping all inter-process communication on localhost. bitcoin: - image: blockstream/bitcoind:31.1 + image: blockstream/bitcoind:32.1 platform: linux/amd64 network_mode: host command: diff --git a/tests/docker/docker-compose-lnd.yml b/tests/docker/docker-compose-lnd.yml index ad6a4e2192..7c02f654d9 100644 --- a/tests/docker/docker-compose-lnd.yml +++ b/tests/docker/docker-compose-lnd.yml @@ -1,6 +1,6 @@ services: bitcoin: - image: blockstream/bitcoind:31.1 + image: blockstream/bitcoind:32.1 platform: linux/amd64 command: [ diff --git a/tests/docker/docker-compose.yml b/tests/docker/docker-compose.yml index 104c0e43b1..1cae68b7d9 100644 --- a/tests/docker/docker-compose.yml +++ b/tests/docker/docker-compose.yml @@ -2,7 +2,7 @@ version: '3' services: bitcoin: - image: blockstream/bitcoind:31.1 + image: blockstream/bitcoind:32.1 platform: linux/amd64 command: [ From 86555992c86fb1aad0559c64a9da689c1c8a6252 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Fri, 4 Dec 2026 10:35:17 +0100 Subject: [PATCH 2/3] Reuse node pairs in anchor reserve open test `open_channel_variants_reserve_funds_for_anchor_peers` started a separate node pair for each of the six channel-opening variants. Bitcoin Core 32 only accepts 16 HTTP clients by default, which the twelve nodes exceeded when syncing via bitcoind's REST interface, so node startup failed with `ChainTipFetchFailed`. Have each of three node pairs first check that the exact-amount variant is rejected and then open the corresponding all-funds variant. A rejected open leaves the node's funds untouched, so all six variants are still covered with half the nodes. Co-Authored-By: HAL 9000 --- tests/integration_tests_rust.rs | 43 ++++++++++++--------------------- 1 file changed, 16 insertions(+), 27 deletions(-) diff --git a/tests/integration_tests_rust.rs b/tests/integration_tests_rust.rs index c307d02b4e..46ee8ab5df 100644 --- a/tests/integration_tests_rust.rs +++ b/tests/integration_tests_rust.rs @@ -9621,15 +9621,12 @@ async fn open_channel_variants_reserve_funds_for_anchor_peers() { let (bitcoind, electrsd) = setup_bitcoind_and_electrsd(); let chain_source = random_chain_source(&bitcoind, &electrsd); - let exact_variants = [ - OpenChannelVariant::Standard, - OpenChannelVariant::Announced, - OpenChannelVariant::ZeroReserve, - ]; - let with_all_variants = [ - OpenChannelVariant::StandardWithAll, - OpenChannelVariant::AnnouncedWithAll, - OpenChannelVariant::ZeroReserveWithAll, + // Each node pair covers one exact-amount and one all-funds variant, as every node holds + // connections to bitcoind, which only accepts a limited number of HTTP clients. + let variants = [ + (OpenChannelVariant::Standard, OpenChannelVariant::StandardWithAll), + (OpenChannelVariant::Announced, OpenChannelVariant::AnnouncedWithAll), + (OpenChannelVariant::ZeroReserve, OpenChannelVariant::ZeroReserveWithAll), ]; let premine_amount_sat = 1_000_000; @@ -9637,20 +9634,12 @@ async fn open_channel_variants_reserve_funds_for_anchor_peers() { let anchor_reserve_sat = 25_000; let mut addresses = Vec::new(); - let mut exact_cases = Vec::new(); - for variant in exact_variants { + let mut cases = Vec::new(); + for (exact_variant, with_all_variant) in variants { let (node_a, node_b) = setup_two_nodes(&chain_source, false, false); addresses.push(node_a.onchain_payment().new_address().unwrap()); addresses.push(node_b.onchain_payment().new_address().unwrap()); - exact_cases.push((variant, node_a, node_b)); - } - - let mut with_all_cases = Vec::new(); - for variant in with_all_variants { - let (node_a, node_b) = setup_two_nodes(&chain_source, false, false); - addresses.push(node_a.onchain_payment().new_address().unwrap()); - addresses.push(node_b.onchain_payment().new_address().unwrap()); - with_all_cases.push((variant, node_a, node_b)); + cases.push((exact_variant, with_all_variant, node_a, node_b)); } premine_and_distribute_funds( @@ -9661,26 +9650,26 @@ async fn open_channel_variants_reserve_funds_for_anchor_peers() { ) .await; - for (_, node_a, node_b) in exact_cases.iter().chain(with_all_cases.iter()) { + for (_, _, node_a, node_b) in cases.iter() { node_a.sync_wallets().unwrap(); node_b.sync_wallets().unwrap(); assert_eq!(node_a.list_balances().spendable_onchain_balance_sats, premine_amount_sat); assert_eq!(node_b.list_balances().spendable_onchain_balance_sats, premine_amount_sat); } - for (variant, node_a, node_b) in exact_cases { + for (exact_variant, _, node_a, node_b) in cases.iter() { assert_eq!( Err(NodeError::InsufficientFunds), - open_channel_variant(variant, &node_a, &node_b, exact_channel_amount_sat), + open_channel_variant(*exact_variant, node_a, node_b, exact_channel_amount_sat), "{} should require funds for the channel amount plus anchor reserve", - variant.label() + exact_variant.label() ); - node_a.stop().unwrap(); - node_b.stop().unwrap(); + assert!(node_a.list_channels().is_empty()); + assert_eq!(node_a.list_balances().spendable_onchain_balance_sats, premine_amount_sat); } let mut opened_with_all_cases = Vec::new(); - for (variant, node_a, node_b) in with_all_cases { + for (_, variant, node_a, node_b) in cases { open_channel_variant(variant, &node_a, &node_b, 0) .unwrap_or_else(|e| panic!("{} failed: {e:?}", variant.label())); From 8b843534cf8c04750218684137b63928bc93a193 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Fri, 4 Dec 2026 10:35:17 +0100 Subject: [PATCH 3/3] Bump LND to v0.21.8-beta in integration tests Bitcoin Core 32 no longer lists the taproot deployment in `getdeploymentinfo`, which LND v0.20.1 requires to be present on startup. The LND integration job hence fails against bitcoind 32.1. Move the LND test setup to v0.21.8-beta, the latest release, which accepts the missing deployment entry. Co-Authored-By: HAL 9000 --- tests/docker/docker-compose-lnd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/docker/docker-compose-lnd.yml b/tests/docker/docker-compose-lnd.yml index 7c02f654d9..12914ed542 100644 --- a/tests/docker/docker-compose-lnd.yml +++ b/tests/docker/docker-compose-lnd.yml @@ -53,7 +53,7 @@ services: - bitcoin-electrs lnd: - image: lightninglabs/lnd:v0.20.1-beta + image: lightninglabs/lnd:v0.21.8-beta container_name: ldk-node-lnd depends_on: bitcoin: