Skip to content

payjoin-cli receive fails on Bitcoin Core 32: gettransaction no longer returns bip125-replaceable #2061

Open

Description

@AdityaKaushal17

Is there an existing issue for this?

  • I have searched the existing issues

Which crate is this issue for?

payjoin-cli

How did you obtain this crate?

Compiled from source

Features

No response

What version of the selected crate are you using?

fix/core32-psbtv2 @ d735229 (PR #2058)

Current behavior

On Bitcoin Core 32.1, the v2 receiver fails when it parses gettransaction:
missing field bip125-replaceable.

Core 32 deprecated that key. It is only returned when bitcoind is started with -deprecatedrpc=bip125.

corepc_types::v28::GetTransaction (corepc-types 0.16.0, src/v28/wallet/mod.rs:261) has bip125_replaceable: Bip125Replaceable as a required field. bitcoind-async-client 0.16.1's v31 client uses it for gettransaction.

In payjoin-cli this is hit by is_my_outpoint (wallet.rs:218) and get_wallet_transaction (wallet.rs:252). payjoin-cli never reads the value, so it only fails while parsing.

On Core 32.1 this breaks 4 v2 e2e tests: send_receive_payjoin_v2, receiver_settles_fallback_before_proposal_v2, receiver_reports_input_contribution_recovery_v2, sender_cancel_v2.

Expected behavior

The v2 receiver works on Core 32 without needing a deprecated RPC flag.

Steps to reproduce

  1. Apply Request v0 PSBTs from Bitcoin Core 32 #2058 (without it, send fails first, see payjoin-cli fails on Bitcoin Core 32.1: wallet RPCs return PSBTv2 #2054)
  2. Start Core 32.1 on regtest without -deprecatedrpc=bip125
  3. Run the v2 e2e tests with BITCOIND_EXE pointing to the 32.1 binary

Relevant log output

missing field bip125-replaceable

Operating system and version

macOS (Apple Silicon, MacBook Air)

Activity

  1. added
    bug
    on Nov 17, 2026
  2. AdityaKaushal17 commented on Nov 17, 2026

    @AdityaKaushal17
    ContributorAuthor

    Workaround I tested: with bitcoind started with -deprecatedrpc=bip125, gettransaction returns the key again. With that plus #2058, a full v2 payjoin works on Core 32.1 on regtest. It was sent, and then settled in block 203 (2 confirmations).

    Possible directions:

    1. Upstream: Core 32 support in corepc-types with bip125_replaceable as an Option, then in bitcoind-async-client, then a version bump here. This looks like the real fix, since Core will eventually remove the key.
    2. Short term: document -deprecatedrpc=bip125 for Core 32 users of payjoin-cli.
    3. CI: run the test node on Core 32, as asked about in Request v0 PSBTs from Bitcoin Core 32 #2058. init_bitcoind() in payjoin-test-utils could push -deprecatedrpc=bip125 into conf.args until option 1 lands. I haven't checked whether Core 29 accepts that flag.

    I'd like to work on this. Which direction do you prefer?

    AI disclosure: I used Claude to help investigate and draft this. I ran the reproduction and the workaround test myself.

  3. spacebear21 commented on Nov 18, 2026

    @spacebear21
    Collaborator

    I think the entire scope of this issue should be "support Core 32 in payjoin-cli". We'll want to run the test node on Core 32, perhaps side-by-side with a backwards compatibility test that runs on <32? psbt_version is not supported in prior versions so we need to confirm it still works on older versions. It seems fixes are needed upstream before we can properly support this without more hacks.

  4. AdityaKaushal17 commented on Nov 25, 2026

    @AdityaKaushal17
    ContributorAuthor

    Status update on the upstream path (checked Nov 25):

    corepc-types 0.17.0 (released Nov 12) doesn't include Core 32 gettransaction support yet. That's corepc #774, still open.
    bitcoind-async-client: alpenlabs/bitcoind-async-client#184 adds Core 32 wallet transaction responses. It needs a corepc-types release that includes #774.
    The bitcoind crate (0.44.0) can download Core only up to 31.1, so a Core 32 test node in CI also needs an upstream release.

    With #184 applied locally through a temporary git pin, all 10 payjoin-cli e2e tests passed on Nov 23 against Core 31.1.0 and 32.1.0 (10/10 each). So the psbt_version path from #2058 still works below 32, and receive works on 32.1 without -deprecatedrpc=bip125.

    Once those releases land, I'll open the PR: bump the deps, then add Core 32 to CI alongside the current older-version run, as you suggested. I'll keep this issue updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions