From 6a4e7b3dd26d109d2049575d6db14591539d2643 Mon Sep 17 00:00:00 2001 From: Valera <50830352+ValeraFinebits@users.noreply.github.com> Date: Wed, 25 Nov 2026 21:33:40 +0200 Subject: [PATCH 1/3] fix: Fix Payjoin CI and shell lint compatibility --- ci/test/00_setup_env_native_payjoin.sh | 2 +- src/wallet/test/payjoin_integration_tests.cpp | 2 +- test/functional/wallet_payjoin.py | 5 ++++- test/lint/lint-shell.py | 5 ++++- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ci/test/00_setup_env_native_payjoin.sh b/ci/test/00_setup_env_native_payjoin.sh index ceb7dae5d745..d22e5504e8a7 100755 --- a/ci/test/00_setup_env_native_payjoin.sh +++ b/ci/test/00_setup_env_native_payjoin.sh @@ -8,7 +8,7 @@ export LC_ALL=C.UTF-8 export CONTAINER_NAME=ci_native_payjoin export CI_IMAGE_NAME_TAG="mirror.gcr.io/rust:1.85.1-bookworm" -export APT_LLVM_V="17" +export APT_LLVM_V="21" export PACKAGES="clang-${APT_LLVM_V} llvm-${APT_LLVM_V} perl" export DEP_OPTS="DEBUG=1 PAYJOIN=1 PAYJOIN_TESTS=1 NO_QT=1 NO_IPC=1 NO_ZMQ=1 NO_USDT=1 CC=clang-${APT_LLVM_V} CXX=clang++-${APT_LLVM_V}" export GOAL="all" diff --git a/src/wallet/test/payjoin_integration_tests.cpp b/src/wallet/test/payjoin_integration_tests.cpp index f69fd8edfc2f..1b28f32a7238 100644 --- a/src/wallet/test/payjoin_integration_tests.cpp +++ b/src/wallet/test/payjoin_integration_tests.cpp @@ -457,7 +457,7 @@ void CheckFinalProposalFeeRate(IntegrationFixture& fixture, bool sufficient) CMutableTransaction funding; funding.vin.emplace_back(COutPoint{fixture.m_receiver_coin->GetHash(), 0}); funding.vout.emplace_back(fixture.m_receiver_coin->vout[0].nValue - 1000, receiver_script); - PartiallySignedTransaction funding_psbt{funding}; + PartiallySignedTransaction funding_psbt{funding, 0}; bool complete{false}; { LOCK(fixture.m_receiver->cs_wallet); diff --git a/test/functional/wallet_payjoin.py b/test/functional/wallet_payjoin.py index 53f111f5bf0c..79eb37109fea 100755 --- a/test/functional/wallet_payjoin.py +++ b/test/functional/wallet_payjoin.py @@ -27,7 +27,10 @@ def set_test_params(self): self.num_nodes = 1 self.setup_clean_chain = True self.wallet_names = [] - self.extra_args = [["-fallbackfee=0.00001", "-addresstype=bech32", "-changetype=bech32", "-deprecatedrpc=bip125"]] + self.extra_args = [[ + "-fallbackfee=0.00001", "-addresstype=bech32", "-changetype=bech32", + "-deprecatedrpc=bip125", "-deprecatedrpc=iswatchonly", + ]] def add_options(self, parser): parser.add_argument("--payjoin-cli", help="Path to the pinned upstream payjoin-cli executable") diff --git a/test/lint/lint-shell.py b/test/lint/lint-shell.py index 836bbc14dd71..40886ee1ee59 100755 --- a/test/lint/lint-shell.py +++ b/test/lint/lint-shell.py @@ -31,7 +31,10 @@ def get_shebang_files(): reg = re.compile(rb"^#!.*\b(?:sh|bash)\b") shebang_files = [] - for file in get_files(["git", "ls-files"]): + for entry in get_files(["git", "ls-files", "--stage"]): + metadata, file = entry.split("\t", 1) + if metadata.split()[0] == "160000": + continue with open(file, "rb") as script: if reg.match(script.readline()): shebang_files.append(file) From bbff7cbdd462fc9eae8d1b91b3928152c6e33dfc Mon Sep 17 00:00:00 2001 From: Valera <50830352+ValeraFinebits@users.noreply.github.com> Date: Wed, 25 Nov 2026 23:00:00 +0300 Subject: [PATCH 2/3] Specify PSBT version in funding transaction Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- src/wallet/test/payjoin_integration_tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/test/payjoin_integration_tests.cpp b/src/wallet/test/payjoin_integration_tests.cpp index 1b28f32a7238..528830bf8003 100644 --- a/src/wallet/test/payjoin_integration_tests.cpp +++ b/src/wallet/test/payjoin_integration_tests.cpp @@ -457,7 +457,7 @@ void CheckFinalProposalFeeRate(IntegrationFixture& fixture, bool sufficient) CMutableTransaction funding; funding.vin.emplace_back(COutPoint{fixture.m_receiver_coin->GetHash(), 0}); funding.vout.emplace_back(fixture.m_receiver_coin->vout[0].nValue - 1000, receiver_script); - PartiallySignedTransaction funding_psbt{funding, 0}; + PartiallySignedTransaction funding_psbt{funding, /*psbt_version=*/0}; bool complete{false}; { LOCK(fixture.m_receiver->cs_wallet); From 1578c0b63e9245332024aa5afbb75bbec47d77d4 Mon Sep 17 00:00:00 2001 From: Valera <50830352+ValeraFinebits@users.noreply.github.com> Date: Thu, 26 Nov 2026 10:44:06 +0200 Subject: [PATCH 3/3] fix: Use libc++ for native payjoin CI --- ci/test/00_setup_env_native_payjoin.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/test/00_setup_env_native_payjoin.sh b/ci/test/00_setup_env_native_payjoin.sh index d22e5504e8a7..2ef19d1d604f 100755 --- a/ci/test/00_setup_env_native_payjoin.sh +++ b/ci/test/00_setup_env_native_payjoin.sh @@ -9,8 +9,8 @@ export LC_ALL=C.UTF-8 export CONTAINER_NAME=ci_native_payjoin export CI_IMAGE_NAME_TAG="mirror.gcr.io/rust:1.85.1-bookworm" export APT_LLVM_V="21" -export PACKAGES="clang-${APT_LLVM_V} llvm-${APT_LLVM_V} perl" -export DEP_OPTS="DEBUG=1 PAYJOIN=1 PAYJOIN_TESTS=1 NO_QT=1 NO_IPC=1 NO_ZMQ=1 NO_USDT=1 CC=clang-${APT_LLVM_V} CXX=clang++-${APT_LLVM_V}" +export PACKAGES="clang-${APT_LLVM_V} llvm-${APT_LLVM_V} libc++-${APT_LLVM_V}-dev libc++abi-${APT_LLVM_V}-dev perl" +export DEP_OPTS="DEBUG=1 PAYJOIN=1 PAYJOIN_TESTS=1 NO_QT=1 NO_IPC=1 NO_ZMQ=1 NO_USDT=1 CC=clang-${APT_LLVM_V} CXX='clang++-${APT_LLVM_V} -stdlib=libc++'" export GOAL="all" export MAKEJOBS="-j4" export CARGO_BUILD_JOBS=4