wallet: deprecate replaceable argument from transaction (and psbt) creation (and modification) RPCs #35433

Open
rkrux wants to merge 7 commits from deprecaterbf into master AGit
rkrux commented 2026-06-01 15:03:53 +00:00 (Migrated from github.com)

Fixes #32661.

The replaceable argument in several wallet RPC requests
has been marked deprecated and for now users have the
option to use this argument via the -deprecatedrpc=bip125
startup option. Affected RPCs are createrawtransaction,
fundrawtransaction, createpsbt, walletcreatefundedpsbt,
send, sendtoaddress, sendmany, sendall, bumpfee,
and psbtbumpfee.

This builds upon the existing issue of removing the option for
users to signal replaceability because fullrbf is the default policy
and prevalent in the network (since bitcoin core v28 was released
in late 2024) that makes every transaction replaceable by default,
making this user option unnecessary.

Fixes #32661. The `replaceable` argument in several wallet RPC requests has been marked deprecated and for now users have the option to use this argument via the `-deprecatedrpc=bip125` startup option. Affected RPCs are `createrawtransaction`, `fundrawtransaction`, `createpsbt`, `walletcreatefundedpsbt`, `send`, `sendtoaddress`, `sendmany`, `sendall`, `bumpfee`, and `psbtbumpfee`. This builds upon the existing issue of removing the option for users to signal replaceability because fullrbf is the default policy and prevalent in the network (since bitcoin core v28 was released in late 2024) that makes every transaction replaceable by default, making this user option unnecessary.
DrahtBot commented 2026-06-01 15:04:01 +00:00 (Migrated from github.com)

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

External sites

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
ACK polespinasa, w0xlt
Stale ACK achow101

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #36990 (test: replace hard-coded RPC error codes by l0rinc)
  • #36257 (qa: assert_equal -> assert_true/assert_false by hodlinator)
  • #36114 (wallet: harden external signer psbt processing, revamp mock by Sjors)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

LLM Linter (✨ experimental)

Possible typos and grammar issues:

  • doc/release-notes-35433.md: Effected RPCs → Affected RPCs [wrong word: “affected” means the RPCs impacted by the change]

Possible places where named args for integral literals may be used (e.g. func(x, /*named_arg=*/0) in C++, and func(x, named_arg=0) in Python):

  • test/functional/wallet_balance.py: node.createrawtransaction(inputs, outputs, 0)
  • test/functional/rpc_psbt.py: walletcreatefundedpsbt(..., block_height+2, {"add_inputs": True}, False)
  • test/functional/rpc_psbt.py: walletcreatefundedpsbt(..., block_height, {"add_inputs": True}, True)
  • test/functional/wallet_signer.py: walletcreatefundedpsbt([], {dest:0.5}, 0, {}, True)

2026-11-23 08:46:47

<!--e57a25ab6845829454e8d69fc972939a--> The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. <!--006a51241073e994b41acfe9ec718e94--> ### External sites * Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/35433 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/35433.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/35433#author-ralph <!--021abf342d371248e50ceaed478a90ca--> ### Reviews See [the guideline](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#code-review) and [AI policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md) for information on the review process. | Type | Reviewers | | ---- | --------- | | ACK | [polespinasa](https://github.com/bitcoin/bitcoin/pull/35433#pullrequestreview-6020774726), [w0xlt](https://github.com/bitcoin/bitcoin/pull/35433#pullrequestreview-6045303781) | | Stale ACK | [achow101](https://github.com/bitcoin/bitcoin/pull/35433#issuecomment-6642505452) | If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore. <!--174a7506f384e20aa4161008e828411d--> ### Conflicts Reviewers, this pull request conflicts with the following ones: * [#36990](https://github.com/bitcoin/bitcoin/pull/36990) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36990.svg"></sub> (test: replace hard-coded RPC error codes by l0rinc) * [#36257](https://github.com/bitcoin/bitcoin/pull/36257) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36257.svg"></sub> (qa: assert_equal -> assert_true/assert_false by hodlinator) * [#36114](https://github.com/bitcoin/bitcoin/pull/36114) <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36114.svg"></sub> (wallet: harden external signer psbt processing, revamp mock by Sjors) If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. <!--5faf32d7da4f0f540f40219e4f7537a3--> ### LLM Linter (✨ experimental) Possible typos and grammar issues: - `doc/release-notes-35433.md`: `Effected RPCs` → `Affected RPCs` [wrong word: “affected” means the RPCs impacted by the change] Possible places where named args for integral literals may be used (e.g. `func(x, /*named_arg=*/0)` in C++, and `func(x, named_arg=0)` in Python): - `test/functional/wallet_balance.py`: `node.createrawtransaction(inputs, outputs, 0)` - `test/functional/rpc_psbt.py`: `walletcreatefundedpsbt(..., block_height+2, {"add_inputs": True}, False)` - `test/functional/rpc_psbt.py`: `walletcreatefundedpsbt(..., block_height, {"add_inputs": True}, True)` - `test/functional/wallet_signer.py`: `walletcreatefundedpsbt([], {dest:0.5}, 0, {}, True)` <sup>2026-11-23 08:46:47</sup>
rkrux commented 2026-06-01 15:08:37 +00:00 (Migrated from github.com)

I will add test case for bumpfee and psbtbumpfee along with release note.

I will add test case for bumpfee and psbtbumpfee along with release note.
DrahtBot commented 2026-06-01 16:29:19 +00:00 (Migrated from github.com)

🚧 At least one of the CI tasks failed.
Task lint: https://github.com/bitcoin/bitcoin/actions/runs/26763283466/job/78882570147
LLM reason (✨ experimental): CI failed because the Python lint (ruff) reported an error—an unused import MAX_BIP125_RBF_SEQUENCE in test/functional/rpc_psbt.py.

Hints

Try to run the tests locally, according to the documentation. However, a CI failure may still
happen due to a number of reasons, for example:

  • Possibly due to a silent merge conflict (the changes in this pull request being
    incompatible with the current code in the target branch). If so, make sure to rebase on the latest
    commit of the target branch.

  • A sanitizer issue, which can only be found by compiling with the sanitizer and running the
    affected test.

  • An intermittent issue.

Leave a comment here, if you need help tracking down a confusing failure.

<!--85328a0da195eb286784d51f73fa0af9--> 🚧 At least one of the CI tasks failed. <sub>Task `lint`: https://github.com/bitcoin/bitcoin/actions/runs/26763283466/job/78882570147</sub> <sub>LLM reason (✨ experimental): CI failed because the Python lint (ruff) reported an error—an unused import `MAX_BIP125_RBF_SEQUENCE` in `test/functional/rpc_psbt.py`.</sub> <details><summary>Hints</summary> Try to run the tests locally, according to the documentation. However, a CI failure may still happen due to a number of reasons, for example: * Possibly due to a silent merge conflict (the changes in this pull request being incompatible with the current code in the target branch). If so, make sure to rebase on the latest commit of the target branch. * A sanitizer issue, which can only be found by compiling with the sanitizer and running the affected test. * An intermittent issue. Leave a comment here, if you need help tracking down a confusing failure. </details>
rkrux commented 2026-06-02 10:03:23 +00:00 (Migrated from github.com)

I will add test case for bumpfee and psbtbumpfee along with release note.

Done now.

> I will add test case for bumpfee and psbtbumpfee along with release note. Done now.
rkrux commented 2026-06-05 11:01:29 +00:00 (Migrated from github.com)

Updated the PR to not depend on #35405, removed the two commit from that PR.

Updated the PR to not depend on #35405, removed the two commit from that PR.
rkrux commented 2026-06-10 12:14:45 +00:00 (Migrated from github.com)

Pushed the last two testing related commits of PR #35442 here as per this review comment https://github.com/bitcoin/bitcoin/pull/35442#issuecomment-4648428333.

Edit: Reverted as they are dependent on #35405 as well slightly.

Pushed the last two testing related commits of PR #35442 here as per this review comment https://github.com/bitcoin/bitcoin/pull/35442#issuecomment-4648428333. Edit: Reverted as they are dependent on #35405 as well slightly.
DrahtBot commented 2026-06-10 12:21:08 +00:00 (Migrated from github.com)

🚧 At least one of the CI tasks failed.
Task lint: https://github.com/bitcoin/bitcoin/actions/runs/27275445645/job/80555467804
LLM reason (✨ experimental): CI failed because Python linting reported an error: test_framework.messages is missing MAX_BIP125_RBF_SEQUENCE in test/functional/rpc_psbt.py.

Hints

Try to run the tests locally, according to the documentation. However, a CI failure may still
happen due to a number of reasons, for example:

  • Possibly due to a silent merge conflict (the changes in this pull request being
    incompatible with the current code in the target branch). If so, make sure to rebase on the latest
    commit of the target branch.

  • A sanitizer issue, which can only be found by compiling with the sanitizer and running the
    affected test.

  • An intermittent issue.

Leave a comment here, if you need help tracking down a confusing failure.

<!--85328a0da195eb286784d51f73fa0af9--> 🚧 At least one of the CI tasks failed. <sub>Task `lint`: https://github.com/bitcoin/bitcoin/actions/runs/27275445645/job/80555467804</sub> <sub>LLM reason (✨ experimental): CI failed because Python linting reported an error: `test_framework.messages` is missing `MAX_BIP125_RBF_SEQUENCE` in `test/functional/rpc_psbt.py`.</sub> <details><summary>Hints</summary> Try to run the tests locally, according to the documentation. However, a CI failure may still happen due to a number of reasons, for example: * Possibly due to a silent merge conflict (the changes in this pull request being incompatible with the current code in the target branch). If so, make sure to rebase on the latest commit of the target branch. * A sanitizer issue, which can only be found by compiling with the sanitizer and running the affected test. * An intermittent issue. Leave a comment here, if you need help tracking down a confusing failure. </details>
pablomartin4btc commented 2026-06-12 19:31:21 +00:00 (Migrated from github.com)

Edit: Reverted as they are dependent on #35405 as well slightly.

I think the PR's description needs to be updated again?

> Edit: Reverted as they are dependent on #35405 as well slightly. I think the PR's description needs to be updated again?
pablomartin4btc (Migrated from github.com) reviewed 2026-06-12 19:45:21 +00:00
pablomartin4btc (Migrated from github.com) commented 2026-06-12 19:45:21 +00:00

as per #35405...

Wallet RPC and Startup Option
as per #35405... ```suggestion Wallet RPC and Startup Option ```
rkrux (Migrated from github.com) reviewed 2026-06-15 07:51:15 +00:00
rkrux (Migrated from github.com) commented 2026-06-15 07:51:15 +00:00

Done.

Done.
rkrux commented 2026-06-15 07:54:13 +00:00 (Migrated from github.com)

Edit: Reverted as they are dependent on https://github.com/bitcoin/bitcoin/pull/35405 as well slightly.

I think the PR's description needs to be updated again?

The description is fine, it was written before these two commits (now removed) were added in this PR.

>> Edit: Reverted as they are dependent on https://github.com/bitcoin/bitcoin/pull/35405 as well slightly. >I think the PR's description needs to be updated again? The description is fine, it was written before these two commits (now removed) were added in this PR.
rkrux commented 2026-06-15 08:44:59 +00:00 (Migrated from github.com)

Force-pushed to not hardcode replaceable as false in the RPC help sections and CCoinControl objects.
Based on the feedback on PR #35405 and the corresponding responses in the ML.

Force-pushed to not hardcode replaceable as false in the RPC help sections and CCoinControl objects. Based on the feedback on PR #35405 and the corresponding responses in the ML.
rkrux commented 2026-06-15 09:03:59 +00:00 (Migrated from github.com)

Force-pushed to update the rpc_psbt.py test that failed after reverting the default replaceable value to true in createpsbt RPC.

Force-pushed to update the [rpc_psbt.py test that failed](https://github.com/bitcoin/bitcoin/actions/runs/27534581330/job/81380724050?pr=35433) after reverting the default replaceable value to true in createpsbt RPC.
rkrux commented 2026-06-15 09:18:51 +00:00 (Migrated from github.com)
The [CI / test ancestor commits (pull_request)](https://github.com/bitcoin/bitcoin/actions/runs/27535381231/job/81383502960?pr=35433) failure is unrelated - #34731.
maflcko (Migrated from github.com) reviewed 2026-06-15 10:55:48 +00:00
Lines 1304-1308
maflcko (Migrated from github.com) commented 2026-06-15 10:55:48 +00:00

ac6ad606d1a10ed9f30433e6d6f038c3a2e39cab: This seems to be the wrong commit/change. It marks the comment why maxint-2 was chosen as deprecated. However, the code here doesn't use a maxint-2 int literals. Instead, the comment should be moved to MAX_BIP125_RBF_SEQUENCE, which picks the int literal.

In this commit, I guess you wanted to mark m_signal_bip125_rbf or m_signal_rbf as deprecated? If so, it would be better to put the comment change there.

ac6ad606d1a10ed9f30433e6d6f038c3a2e39cab: This seems to be the wrong commit/change. It marks the comment why maxint-2 was chosen as deprecated. However, the code here doesn't use a maxint-2 int literals. Instead, the comment should be moved to `MAX_BIP125_RBF_SEQUENCE`, which picks the int literal. In this commit, I guess you wanted to mark `m_signal_bip125_rbf` or `m_signal_rbf` as deprecated? If so, it would be better to put the comment change there.
rkrux (Migrated from github.com) reviewed 2026-06-15 12:28:13 +00:00
Lines 1304-1308
rkrux (Migrated from github.com) commented 2026-06-15 12:28:13 +00:00

Instead, the comment should be moved to MAX_BIP125_RBF_SEQUENCE, which picks the int literal.

Moved in rbf.h, it does look better as the comment becomes the documentation for this constant highlighting that this value is deprecated/outdated.

> Instead, the comment should be moved to MAX_BIP125_RBF_SEQUENCE, which picks the int literal. Moved in rbf.h, it does look better as the comment becomes the documentation for this constant highlighting that this value is deprecated/outdated.
maflcko (Migrated from github.com) reviewed 2026-06-15 13:29:22 +00:00
Lines 1304-1308
maflcko (Migrated from github.com) commented 2026-06-15 13:29:22 +00:00

Sorry, I think I was unclear. What I wanted to say was that the change seems to be unrelated (to this pull request, as well as this commit), so at a minimum, it should be split into a separate commit.

Marking MAX_BIP125_RBF_SEQUENCE as deprecated is done in https://github.com/bitcoin/bitcoin/pull/35405, so if that pull request is closed, it doesn't make sense to mark it as deprecated, because it will stay around.

Also, MAX_BIP125_RBF_SEQUENCE is used in more RPC than just bumpfee, so bundling this change in the commit that changes bumpfee doesn't really make sense.

So I think this change should be split into a separate commit

Sorry, I think I was unclear. What I wanted to say was that the change seems to be unrelated (to this pull request, as well as this commit), so at a minimum, it should be split into a separate commit. Marking `MAX_BIP125_RBF_SEQUENCE` as deprecated is done in https://github.com/bitcoin/bitcoin/pull/35405, so if that pull request is closed, it doesn't make sense to mark it as deprecated, because it will stay around. Also, `MAX_BIP125_RBF_SEQUENCE` is used in more RPC than just bumpfee, so bundling this change in the commit that changes bumpfee doesn't really make sense. So I think this change should be split into a separate commit
rkrux (Migrated from github.com) reviewed 2026-06-15 14:35:05 +00:00
Lines 1304-1308
rkrux (Migrated from github.com) commented 2026-06-15 14:35:05 +00:00

What I wanted to say was that the change seems to be unrelated (to this pull request, as well as this commit), so at a minimum, it should be split into a separate commit.

Yeah, it does seem to be a remnant of an outdated version of this PR that was built over #34505.

Marking MAX_BIP125_RBF_SEQUENCE as deprecated is done in https://github.com/bitcoin/bitcoin/pull/35405, so if that pull request is closed, it doesn't make sense to mark it as deprecated, because it will stay around.

Not marked it deprecated now. Maybe later in #35442 when I rework it, let's see.

Also, MAX_BIP125_RBF_SEQUENCE is used in more RPC than just bumpfee, so bundling this change in the commit that changes bumpfee doesn't really make sense.
So I think this change should be split into a separate commit

Yes, this makes sense. I have separated it out now.

> What I wanted to say was that the change seems to be unrelated (to this pull request, as well as this commit), so at a minimum, it should be split into a separate commit. Yeah, it does seem to be a remnant of an outdated version of this PR that was built over #34505. > Marking MAX_BIP125_RBF_SEQUENCE as deprecated is done in https://github.com/bitcoin/bitcoin/pull/35405, so if that pull request is closed, it doesn't make sense to mark it as deprecated, because it will stay around. Not marked it deprecated now. Maybe later in #35442 when I rework it, let's see. > Also, MAX_BIP125_RBF_SEQUENCE is used in more RPC than just bumpfee, so bundling this change in the commit that changes bumpfee doesn't really make sense. > So I think this change should be split into a separate commit Yes, this makes sense. I have separated it out now.
DrahtBot commented 2026-06-15 16:44:13 +00:00 (Migrated from github.com)

🚧 At least one of the CI tasks failed.
Task iwyu: https://github.com/bitcoin/bitcoin/actions/runs/27553730406/job/81452610641
LLM reason (✨ experimental): CI failed because IWYU detected missing/incorrect #includes (failure generated from IWYU) in src/bench/pool.cpp.

Hints

Try to run the tests locally, according to the documentation. However, a CI failure may still
happen due to a number of reasons, for example:

  • Possibly due to a silent merge conflict (the changes in this pull request being
    incompatible with the current code in the target branch). If so, make sure to rebase on the latest
    commit of the target branch.

  • A sanitizer issue, which can only be found by compiling with the sanitizer and running the
    affected test.

  • An intermittent issue.

Leave a comment here, if you need help tracking down a confusing failure.

<!--85328a0da195eb286784d51f73fa0af9--> 🚧 At least one of the CI tasks failed. <sub>Task `iwyu`: https://github.com/bitcoin/bitcoin/actions/runs/27553730406/job/81452610641</sub> <sub>LLM reason (✨ experimental): CI failed because IWYU detected missing/incorrect `#include`s (failure generated from IWYU) in `src/bench/pool.cpp`.</sub> <details><summary>Hints</summary> Try to run the tests locally, according to the documentation. However, a CI failure may still happen due to a number of reasons, for example: * Possibly due to a silent merge conflict (the changes in this pull request being incompatible with the current code in the target branch). If so, make sure to rebase on the latest commit of the target branch. * A sanitizer issue, which can only be found by compiling with the sanitizer and running the affected test. * An intermittent issue. Leave a comment here, if you need help tracking down a confusing failure. </details>
rkrux commented 2026-06-16 06:59:26 +00:00 (Migrated from github.com)

The CI / iwyu (pull_request) failure is unrelated and should have been fixed post #35535.

The [CI / iwyu (pull_request)](https://github.com/bitcoin/bitcoin/actions/runs/27553730406/job/81597780638?pr=35433) failure is unrelated and should have been fixed post #35535.
DrahtBot commented 2026-06-26 23:01:06 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
rkrux commented 2026-06-27 07:36:49 +00:00 (Migrated from github.com)

Rebased over master to incorporate changes from PR #35543.

Rebased over master to incorporate changes from PR #35543.
polespinasa (Migrated from github.com) reviewed 2026-07-06 17:05:16 +00:00
polespinasa (Migrated from github.com) left a comment

concept ACK

reviewed 020560e00a4b49e5ceb4365def4f2e07b60eee57

The code looks good, but I think the way it is done the deprecation might be invisible for the users. If a user does add a replaceable argument but does not enable the deprecated flag it will be ignored without the user noticing.

I think all deprecated fields should be set to optional and throw if used when the deprecated flag is not set.

in 020560e00a4b49e5ceb4365def4f2e07b60eee57 wallet, test: add test cases for deprecated RBF features
The test only checks the replaceable=True, does not check for replaceable=False.

concept ACK reviewed 020560e00a4b49e5ceb4365def4f2e07b60eee57 The code looks good, but I think the way it is done the deprecation might be invisible for the users. If a user does add a replaceable argument but does not enable the deprecated flag it will be ignored without the user noticing. I think all deprecated fields should be set to optional and throw if used when the deprecated flag is not set. in 020560e00a4b49e5ceb4365def4f2e07b60eee57 wallet, test: add test cases for deprecated RBF features The test only checks the `replaceable=True`, does not check for `replaceable=False`.
polespinasa (Migrated from github.com) commented 2026-07-06 16:58:41 +00:00

in 85df2740b1e2cd6c7ca3e3d19180e707373244ee wallet, rpc: deprecate replaceable argument in bumpfee, psbtbumpfee RPCs

This looks wrong, should be !cc.m_signal_bip125_rbf.hasValue().
As it is if it has value and the value if false it will be overwritten to DEFAULT_WALLET_RBF

in 85df2740b1e2cd6c7ca3e3d19180e707373244ee wallet, rpc: deprecate replaceable argument in bumpfee, psbtbumpfee RPCs This looks wrong, should be `!cc.m_signal_bip125_rbf.hasValue()`. As it is if it has value and the value if `false` it will be overwritten to `DEFAULT_WALLET_RBF`
polespinasa (Migrated from github.com) commented 2026-07-06 17:02:27 +00:00

in 020560e00a4b49e5ceb4365def4f2e07b60eee57 wallet, test: add test cases for deprecated RBF features

nit: we use 4 spaces for indentation, this test uses 3.

in 020560e00a4b49e5ceb4365def4f2e07b60eee57 wallet, test: add test cases for deprecated RBF features nit: we use 4 spaces for indentation, this test uses 3.
polespinasa (Migrated from github.com) commented 2026-07-06 17:00:51 +00:00

in 020560e00a4b49e5ceb4365def4f2e07b60eee57 wallet, test: add test cases for deprecated RBF features

Should be assert_rbf_in_tx_hex(funded_tx_hex) ??

in 020560e00a4b49e5ceb4365def4f2e07b60eee57 wallet, test: add test cases for deprecated RBF features Should be `assert_rbf_in_tx_hex(funded_tx_hex)` ??
achow101 (Migrated from github.com) reviewed 2026-07-06 20:37:13 +00:00
achow101 (Migrated from github.com) left a comment

a00899f3d7fca8ed5d8f849bca4979099a3d8aac "wallet, test: replace rbf_node with node in wallet_bumpfee.py" seems entirely unnecessary. Mass renaming things in that file breaks git blame, and I don't really see the benefit for changing the name. rbf_node is still kind of appropriate because that's node that's doing all of the rbf things.

The deprecation should be throwing if the option is set, not silently ignoring it. For the options objects, it can throw if the option is provided at all. For positional arguments, the argument must be null. We only accept the option if -deprecatedrpc is provided.

a00899f3d7fca8ed5d8f849bca4979099a3d8aac "wallet, test: replace rbf_node with node in wallet_bumpfee.py" seems entirely unnecessary. Mass renaming things in that file breaks git blame, and I don't really see the benefit for changing the name. `rbf_node` is still kind of appropriate because that's node that's doing all of the rbf things. The deprecation should be throwing if the option is set, not silently ignoring it. For the options objects, it can throw if the option is provided at all. For positional arguments, the argument must be null. We only accept the option if `-deprecatedrpc` is provided.
achow101 (Migrated from github.com) commented 2026-07-06 20:19:30 +00:00

In c2515fc66fb5b91dce6552e79286b6117dbd68df "doc: update release notes of 34917 mentioning replaceable deprecation"

This is not a valid section header for release notes.

This could either be a standalone Notable Change, in which case this section header should be a title that describes what the change, or it should be one of the standard section headers in doc/release-notes-empty-template.md (i.e. Wallet)

In c2515fc66fb5b91dce6552e79286b6117dbd68df "doc: update release notes of 34917 mentioning `replaceable` deprecation" This is not a valid section header for release notes. This could either be a standalone Notable Change, in which case this section header should be a title that describes what the change, or it should be one of the standard section headers in doc/release-notes-empty-template.md (i.e. Wallet)
achow101 (Migrated from github.com) commented 2026-07-06 20:15:13 +00:00

It should also still be using true, not be changed to DEFAULT_WALLET_RBF as the idea is to unconditionally set it to true, not use the default for the wallet.

It should also still be using `true`, not be changed to `DEFAULT_WALLET_RBF` as the idea is to unconditionally set it to `true`, not use the default for the wallet.
achow101 (Migrated from github.com) commented 2026-07-06 20:16:14 +00:00

In 85df2740b1e2cd6c7ca3e3d19180e707373244ee "wallet, rpc: deprecate replaceable argument in bumpfee, psbtbumpfee RPCs"

This should not be changed

In 85df2740b1e2cd6c7ca3e3d19180e707373244ee "wallet, rpc: deprecate replaceable argument in bumpfee, psbtbumpfee RPCs" This should not be changed
rkrux (Migrated from github.com) reviewed 2026-07-07 11:45:35 +00:00
rkrux (Migrated from github.com) commented 2026-07-07 11:45:35 +00:00

Reverted

Reverted
rkrux (Migrated from github.com) reviewed 2026-07-07 11:45:40 +00:00
rkrux (Migrated from github.com) commented 2026-07-07 11:45:40 +00:00

Fixed

Fixed
rkrux (Migrated from github.com) reviewed 2026-07-07 11:45:47 +00:00
rkrux (Migrated from github.com) commented 2026-07-07 11:45:47 +00:00

Reverted

Reverted
rkrux (Migrated from github.com) reviewed 2026-07-07 11:45:50 +00:00
rkrux (Migrated from github.com) commented 2026-07-07 11:45:50 +00:00

Fixed

Fixed
rkrux commented 2026-07-07 11:45:54 +00:00 (Migrated from github.com)

I think all deprecated fields should throw if used when the deprecated flag is not set.

Done

in github.com/bitcoin/bitcoin@020560e00a wallet, test: add test cases for deprecated RBF features
The test only checks the replaceable=True, does not check for replaceable=False.

Done

github.com/bitcoin/bitcoin@a00899f3d7 "wallet, test: replace rbf_node with node in wallet_bumpfee.py" seems entirely unnecessary. Mass renaming things in that file breaks git blame, and I don't really see the benefit for changing the name. rbf_node is still kind of appropriate because that's node that's doing all of the rbf things.

Dropped

The deprecation should be throwing if the option is set, not silently ignoring it. For the options objects, it can throw if the option is provided at all. For positional arguments, the argument must be null. We only accept the option if -deprecatedrpc is provided.

Done

> I think all deprecated fields should throw if used when the deprecated flag is not set. Done > in https://github.com/bitcoin/bitcoin/commit/020560e00a4b49e5ceb4365def4f2e07b60eee57 wallet, test: add test cases for deprecated RBF features The test only checks the replaceable=True, does not check for replaceable=False. Done > https://github.com/bitcoin/bitcoin/commit/a00899f3d7fca8ed5d8f849bca4979099a3d8aac "wallet, test: replace rbf_node with node in wallet_bumpfee.py" seems entirely unnecessary. Mass renaming things in that file breaks git blame, and I don't really see the benefit for changing the name. rbf_node is still kind of appropriate because that's node that's doing all of the rbf things. Dropped > The deprecation should be throwing if the option is set, not silently ignoring it. For the options objects, it can throw if the option is provided at all. For positional arguments, the argument must be null. We only accept the option if -deprecatedrpc is provided. Done
polespinasa (Migrated from github.com) reviewed 2026-07-07 14:26:12 +00:00
polespinasa (Migrated from github.com) commented 2026-07-07 14:19:46 +00:00

In 3ac9c24124f0722649016a12fdf39eb9a628cd94 wallet, rpc: deprecate replaceable argument in bumpfee, psbtbumpfee RPCs

This stills wrong, this PR does not introduce the error, but m_signal_bip125_rbf is an optional, if it is not set, it will set it to true, but if it is explicitly set to false it will be overwritten to true anyway.
It should be if (!cc.m_signal_bip125_rbf.has_value())

Nevermind, I just got confused, it does not make sense, feel free to resolve the conversation

In 3ac9c24124f0722649016a12fdf39eb9a628cd94 wallet, rpc: deprecate replaceable argument in bumpfee, psbtbumpfee RPCs ~This stills wrong, this PR does not introduce the error, but `m_signal_bip125_rbf` is an optional, if it is not set, it will set it to `true`, but if it is explicitly set to `false` it will be overwritten to `true` anyway. It should be `if (!cc.m_signal_bip125_rbf.has_value())`~ Nevermind, I just got confused, it does not make sense, feel free to resolve the conversation
rkrux (Migrated from github.com) reviewed 2026-07-07 14:31:36 +00:00
rkrux (Migrated from github.com) commented 2026-07-07 14:31:36 +00:00

this PR does not introduce the error

This should be addressed in a separate PR.

> this PR does not introduce the error This should be addressed in a separate PR.
DrahtBot commented 2026-08-05 09:45:10 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
rkrux commented 2026-08-11 09:42:10 +00:00 (Migrated from github.com)

Rebased over master to incorporate changes from #35836.

Rebased over master to incorporate changes from #35836.
w0xlt (Migrated from github.com) reviewed 2026-08-11 21:56:21 +00:00
w0xlt (Migrated from github.com) left a comment

On a node started without -deprecatedrpc=bip125 (the default), three sendtoaddress examples in this help block still supply the deprecated option.

diff --git a/src/wallet/rpc/spend.cpp b/src/wallet/rpc/spend.cpp
index 068b3fda13..fdd6e4c89d 100644
--- a/src/wallet/rpc/spend.cpp
+++ b/src/wallet/rpc/spend.cpp
@@ -280,14 +280,14 @@ RPCMethod sendtoaddress()
                     "\nSend 0.1 BTC\n"
                     + HelpExampleCli("sendtoaddress", "\"" + EXAMPLE_ADDRESS[0] + "\" 0.1") +
                     "\nSend 0.1 BTC with a confirmation target of 6 blocks in economical fee estimate mode using positional arguments\n"
-                    + HelpExampleCli("sendtoaddress", "\"" + EXAMPLE_ADDRESS[0] + "\" 0.1 \"donation\" \"sean's outpost\" false true 6 economical") +
-                    "\nSend 0.1 BTC with a fee rate of 1.1 " + CURRENCY_ATOM + "/vB, subtract fee from amount, BIP125-replaceable, using positional arguments\n"
-                    + HelpExampleCli("sendtoaddress", "\"" + EXAMPLE_ADDRESS[0] + "\" 0.1 \"drinks\" \"room77\" true true null \"unset\" null 1.1") +
+                    + HelpExampleCli("sendtoaddress", "\"" + EXAMPLE_ADDRESS[0] + "\" 0.1 \"donation\" \"sean's outpost\" false null 6 economical") +
+                    "\nSend 0.1 BTC with a fee rate of 1.1 " + CURRENCY_ATOM + "/vB, subtract fee from amount, using positional arguments\n"
+                    + HelpExampleCli("sendtoaddress", "\"" + EXAMPLE_ADDRESS[0] + "\" 0.1 \"drinks\" \"room77\" true null null \"unset\" null 1.1") +
                     "\nSend 0.2 BTC with a confirmation target of 6 blocks in economical fee estimate mode using named arguments\n"
                     + HelpExampleCli("-named sendtoaddress", "address=\"" + EXAMPLE_ADDRESS[0] + "\" amount=0.2 conf_target=6 estimate_mode=\"economical\"") +
                     "\nSend 0.5 BTC with a fee rate of 25 " + CURRENCY_ATOM + "/vB using named arguments\n"
                     + HelpExampleCli("-named sendtoaddress", "address=\"" + EXAMPLE_ADDRESS[0] + "\" amount=0.5 fee_rate=25")
-                    + HelpExampleCli("-named sendtoaddress", "address=\"" + EXAMPLE_ADDRESS[0] + "\" amount=0.5 fee_rate=25 subtractfeefromamount=false replaceable=true avoid_reuse=true comment=\"2 pizzas\" comment_to=\"jeremy\" verbose=true")
+                    + HelpExampleCli("-named sendtoaddress", "address=\"" + EXAMPLE_ADDRESS[0] + "\" amount=0.5 fee_rate=25 subtractfeefromamount=false avoid_reuse=true comment=\"2 pizzas\" comment_to=\"jeremy\" verbose=true")
                 },
         [](const RPCMethod& self, const JSONRPCRequest& request) -> UniValue
 {
On a node started without -deprecatedrpc=bip125 (the default), three sendtoaddress examples in this help block still supply the deprecated option. ```diff diff --git a/src/wallet/rpc/spend.cpp b/src/wallet/rpc/spend.cpp index 068b3fda13..fdd6e4c89d 100644 --- a/src/wallet/rpc/spend.cpp +++ b/src/wallet/rpc/spend.cpp @@ -280,14 +280,14 @@ RPCMethod sendtoaddress() "\nSend 0.1 BTC\n" + HelpExampleCli("sendtoaddress", "\"" + EXAMPLE_ADDRESS[0] + "\" 0.1") + "\nSend 0.1 BTC with a confirmation target of 6 blocks in economical fee estimate mode using positional arguments\n" - + HelpExampleCli("sendtoaddress", "\"" + EXAMPLE_ADDRESS[0] + "\" 0.1 \"donation\" \"sean's outpost\" false true 6 economical") + - "\nSend 0.1 BTC with a fee rate of 1.1 " + CURRENCY_ATOM + "/vB, subtract fee from amount, BIP125-replaceable, using positional arguments\n" - + HelpExampleCli("sendtoaddress", "\"" + EXAMPLE_ADDRESS[0] + "\" 0.1 \"drinks\" \"room77\" true true null \"unset\" null 1.1") + + + HelpExampleCli("sendtoaddress", "\"" + EXAMPLE_ADDRESS[0] + "\" 0.1 \"donation\" \"sean's outpost\" false null 6 economical") + + "\nSend 0.1 BTC with a fee rate of 1.1 " + CURRENCY_ATOM + "/vB, subtract fee from amount, using positional arguments\n" + + HelpExampleCli("sendtoaddress", "\"" + EXAMPLE_ADDRESS[0] + "\" 0.1 \"drinks\" \"room77\" true null null \"unset\" null 1.1") + "\nSend 0.2 BTC with a confirmation target of 6 blocks in economical fee estimate mode using named arguments\n" + HelpExampleCli("-named sendtoaddress", "address=\"" + EXAMPLE_ADDRESS[0] + "\" amount=0.2 conf_target=6 estimate_mode=\"economical\"") + "\nSend 0.5 BTC with a fee rate of 25 " + CURRENCY_ATOM + "/vB using named arguments\n" + HelpExampleCli("-named sendtoaddress", "address=\"" + EXAMPLE_ADDRESS[0] + "\" amount=0.5 fee_rate=25") - + HelpExampleCli("-named sendtoaddress", "address=\"" + EXAMPLE_ADDRESS[0] + "\" amount=0.5 fee_rate=25 subtractfeefromamount=false replaceable=true avoid_reuse=true comment=\"2 pizzas\" comment_to=\"jeremy\" verbose=true") + + HelpExampleCli("-named sendtoaddress", "address=\"" + EXAMPLE_ADDRESS[0] + "\" amount=0.5 fee_rate=25 subtractfeefromamount=false avoid_reuse=true comment=\"2 pizzas\" comment_to=\"jeremy\" verbose=true") }, [](const RPCMethod& self, const JSONRPCRequest& request) -> UniValue { ```
polespinasa (Migrated from github.com) reviewed 2026-08-12 10:14:41 +00:00
polespinasa (Migrated from github.com) commented 2026-08-12 10:14:41 +00:00

in cc96cae71f1bf00d935a2a1ef305d3210547cdef wallet, rpc: deprecate replaceable argument in walletcreatefundedpsbt, fundrawtransaction

I think this is dead and duplicated code. Because all RPC calls that call FundTransaction already check for rpcEnableDeprecated.

We can probably remove this code, or just remove all checks from other RPC calls and make them all relay on this one.

in cc96cae71f1bf00d935a2a1ef305d3210547cdef wallet, rpc: deprecate replaceable argument in walletcreatefundedpsbt, fundrawtransaction I think this is dead and duplicated code. Because all RPC calls that call `FundTransaction` already check for `rpcEnableDeprecated`. We can probably remove this code, or just remove all checks from other RPC calls and make them all relay on this one.
DrahtBot commented 2026-08-12 11:37:40 +00:00 (Migrated from github.com)

🚧 At least one of the CI tasks failed.
Task lint: https://github.com/bitcoin/bitcoin/actions/runs/31592235170/job/94099596196
LLM reason (✨ experimental): CI failed because the commit_msg lint detected an invalid commit message format (missing a blank line after the subject/body in commit 6eff6977bc1a1b0aebbe28cfab63939c235cdbc6).

Hints

Try to run the tests locally, according to the documentation. However, a CI failure may still
happen due to a number of reasons, for example:

  • Possibly due to a silent merge conflict (the changes in this pull request being
    incompatible with the current code in the target branch). If so, make sure to rebase on the latest
    commit of the target branch.

  • A sanitizer issue, which can only be found by compiling with the sanitizer and running the
    affected test.

  • An intermittent issue.

Leave a comment here, if you need help tracking down a confusing failure.

<!--85328a0da195eb286784d51f73fa0af9--> 🚧 At least one of the CI tasks failed. <sub>Task `lint`: https://github.com/bitcoin/bitcoin/actions/runs/31592235170/job/94099596196</sub> <sub>LLM reason (✨ experimental): CI failed because the `commit_msg` lint detected an invalid commit message format (missing a blank line after the subject/body in commit `6eff6977bc1a1b0aebbe28cfab63939c235cdbc6`).</sub> <details><summary>Hints</summary> Try to run the tests locally, according to the documentation. However, a CI failure may still happen due to a number of reasons, for example: * Possibly due to a silent merge conflict (the changes in this pull request being incompatible with the current code in the target branch). If so, make sure to rebase on the latest commit of the target branch. * A sanitizer issue, which can only be found by compiling with the sanitizer and running the affected test. * An intermittent issue. Leave a comment here, if you need help tracking down a confusing failure. </details>
rkrux (Migrated from github.com) reviewed 2026-08-12 11:37:51 +00:00
rkrux (Migrated from github.com) commented 2026-08-12 11:37:51 +00:00

Because all RPC calls that call FundTransaction already check for rpcEnableDeprecated.

fundrawtransaction didn't, but the other two (walletcreatefundedpsbt and send) did. So, I kept this check in FundTransaction and removed the ones from the other two, reducing the diff.

> Because all RPC calls that call FundTransaction already check for rpcEnableDeprecated. fundrawtransaction didn't, but the other two (walletcreatefundedpsbt and send) did. So, I kept this check in FundTransaction and removed the ones from the other two, reducing the diff.
rkrux commented 2026-08-12 11:38:20 +00:00 (Migrated from github.com)

On a node started without -deprecatedrpc=bip125 (the default), three sendtoaddress examples in this help block still supply the deprecated option.

Applied the suggestion.

> On a node started without -deprecatedrpc=bip125 (the default), three sendtoaddress examples in this help block still supply the deprecated option. Applied the suggestion.
polespinasa commented 2026-08-12 12:24:08 +00:00 (Migrated from github.com)

Ideally deprecated RPC testing should be added to test file rpc_reprecated.py

Ideally deprecated RPC testing should be added to test file [rpc_reprecated.py](https://github.com/bitcoin/bitcoin/blob/master/test/functional/rpc_deprecated.py)
rkrux commented 2026-08-12 12:56:40 +00:00 (Migrated from github.com)
> Ideally deprecated RPC testing should be added to test file [rpc_reprecated.py](https://github.com/bitcoin/bitcoin/blob/master/test/functional/rpc_deprecated.py) This has been discussed before here: https://github.com/bitcoin/bitcoin/pull/35381#pullrequestreview-4371680101
polespinasa commented 2026-08-12 13:30:44 +00:00 (Migrated from github.com)

Ideally deprecated RPC testing should be added to test file rpc_reprecated.py

This has been discussed before here: #35381 (review)

Oh right, I knew we discussed this before but I couldn't find the conversation.

Anyway I think you should be able to move this block adding the self.is_wallet_compiled, the tests passes locally for me compiling without a wallet:

        if self.is_wallet_compiled():
            self.log.info("Test without -deprecatedrpc=bip125")
            DEPRECATED_RPC_MESSAGE = "Deprecated \"replaceable\" argument passed. Run with -deprecatedrpc=bip125 startup option to use it."
            node = self.nodes[0]
            node.createwallet("deprecated_optinrbf")
            wallet = node.get_wallet_rpc("deprecated_optinrbf")
            self.generatetoaddress(node, nblocks=101, address=wallet.getnewaddress(), sync_fun=self.no_op)

            # helper functions
            def get_largest_unspent():
              return max(wallet.listunspent(), key=lambda unspent: unspent["amount"])

            def check_rbf_signalling(inputs, rbf_signalling=True):
              for input in inputs:
                if rbf_signalling:
                  assert_equal(input["sequence"], MAX_BIP125_RBF_SEQUENCE)
                else:
                  assert_not_equal(input["sequence"], MAX_BIP125_RBF_SEQUENCE)

            def assert_rbf_signalling_in_wallet_tx(tx_id):
              wallet_mempool_tx = wallet.gettransaction(tx_id)
              assert_equal("bip125-replaceable" in wallet_mempool_tx, True)
              assert_equal(wallet_mempool_tx["bip125-replaceable"], "yes")

            send_rpcs = [
              lambda: wallet.send(outputs=[{wallet.getnewaddress(): 1}], options={"replaceable": True})["txid"],
              lambda: wallet.sendtoaddress(address=wallet.getnewaddress(), amount=1, replaceable=True),
              lambda: wallet.sendmany(amounts={wallet.getnewaddress():1, wallet.getnewaddress():1}, replaceable=True),
              lambda: wallet.sendall(recipients=[wallet.getnewaddress()], replaceable=True)["txid"],
            ]
    
            # check for errors regarding usage of deprecated arguments without -deprecatedrpc startup option
            unspent = get_largest_unspent()
            assert_raises_rpc_error(-32, DEPRECATED_RPC_MESSAGE, wallet.createrawtransaction, inputs=[unspent], outputs=[{wallet.getnewaddress(): 1}], replaceable=True)
            assert_raises_rpc_error(-32, DEPRECATED_RPC_MESSAGE, wallet.createpsbt, inputs=[unspent], outputs=[{wallet.getnewaddress(): 1}], replaceable=True)
            for rpc in send_rpcs:
              try:
                rpc()
              except JSONRPCException as e:
                assert_equal(e.error["code"], -32)
                assert_equal(e.error["message"], DEPRECATED_RPC_MESSAGE)
              except Exception as e:
                raise AssertionError("Unexpected exception raised: " + type(e).__name__)

Another nit on the tests, https://github.com/bitcoin/bitcoin/pull/35433#discussion_r3530723710 still apply

> > Ideally deprecated RPC testing should be added to test file [rpc_reprecated.py](https://github.com/bitcoin/bitcoin/blob/master/test/functional/rpc_deprecated.py) > > This has been discussed before here: [#35381 (review)](https://github.com/bitcoin/bitcoin/pull/35381#pullrequestreview-4371680101) Oh right, I knew we discussed this before but I couldn't find the conversation. Anyway I think you should be able to move this block adding the `self.is_wallet_compiled`, the tests passes locally for me compiling without a wallet: ```python3 if self.is_wallet_compiled(): self.log.info("Test without -deprecatedrpc=bip125") DEPRECATED_RPC_MESSAGE = "Deprecated \"replaceable\" argument passed. Run with -deprecatedrpc=bip125 startup option to use it." node = self.nodes[0] node.createwallet("deprecated_optinrbf") wallet = node.get_wallet_rpc("deprecated_optinrbf") self.generatetoaddress(node, nblocks=101, address=wallet.getnewaddress(), sync_fun=self.no_op) # helper functions def get_largest_unspent(): return max(wallet.listunspent(), key=lambda unspent: unspent["amount"]) def check_rbf_signalling(inputs, rbf_signalling=True): for input in inputs: if rbf_signalling: assert_equal(input["sequence"], MAX_BIP125_RBF_SEQUENCE) else: assert_not_equal(input["sequence"], MAX_BIP125_RBF_SEQUENCE) def assert_rbf_signalling_in_wallet_tx(tx_id): wallet_mempool_tx = wallet.gettransaction(tx_id) assert_equal("bip125-replaceable" in wallet_mempool_tx, True) assert_equal(wallet_mempool_tx["bip125-replaceable"], "yes") send_rpcs = [ lambda: wallet.send(outputs=[{wallet.getnewaddress(): 1}], options={"replaceable": True})["txid"], lambda: wallet.sendtoaddress(address=wallet.getnewaddress(), amount=1, replaceable=True), lambda: wallet.sendmany(amounts={wallet.getnewaddress():1, wallet.getnewaddress():1}, replaceable=True), lambda: wallet.sendall(recipients=[wallet.getnewaddress()], replaceable=True)["txid"], ] # check for errors regarding usage of deprecated arguments without -deprecatedrpc startup option unspent = get_largest_unspent() assert_raises_rpc_error(-32, DEPRECATED_RPC_MESSAGE, wallet.createrawtransaction, inputs=[unspent], outputs=[{wallet.getnewaddress(): 1}], replaceable=True) assert_raises_rpc_error(-32, DEPRECATED_RPC_MESSAGE, wallet.createpsbt, inputs=[unspent], outputs=[{wallet.getnewaddress(): 1}], replaceable=True) for rpc in send_rpcs: try: rpc() except JSONRPCException as e: assert_equal(e.error["code"], -32) assert_equal(e.error["message"], DEPRECATED_RPC_MESSAGE) except Exception as e: raise AssertionError("Unexpected exception raised: " + type(e).__name__) ``` Another nit on the tests, https://github.com/bitcoin/bitcoin/pull/35433#discussion_r3530723710 still apply
polespinasa (Migrated from github.com) reviewed 2026-08-12 13:55:02 +00:00
polespinasa (Migrated from github.com) left a comment

reviewed 3d06f13d55872047be21c9c417f4a3679510f661

reviewed 3d06f13d55872047be21c9c417f4a3679510f661
polespinasa (Migrated from github.com) commented 2026-08-12 13:54:23 +00:00

in 3d06f13d55872047be21c9c417f4a3679510f661 doc: update release notes of 34917 mentioning replaceable deprecation

If I am not wrong, createpsbt, and createrawtransaction are not Wallet rpc

in 3d06f13d55872047be21c9c417f4a3679510f661 doc: update release notes of 34917 mentioning `replaceable` deprecation If I am not wrong, `createpsbt`, and `createrawtransaction` are not Wallet rpc
polespinasa (Migrated from github.com) commented 2026-08-12 13:40:39 +00:00

in 77ff18e43e08e74330cf339933a7515f746f8a3b wallet, rpc: deprecate replaceable argument in sendall RPC

This docs replaceable as deprecated for all RPC calls using FundTxDoc, but in this commit only sendall has the flag check and the error throw. For the other calls send, fundrawtransaction, walletcreatefundedpsbt the doc is incorrect until a future commit.
Commits should be atomically corrects by themself, so probably using a single commit for all RPCs using FundTxDoc is a better option.

in 77ff18e43e08e74330cf339933a7515f746f8a3b wallet, rpc: deprecate replaceable argument in sendall RPC This docs replaceable as deprecated for all RPC calls using `FundTxDoc`, but in this commit only `sendall` has the flag check and the error throw. For the other calls `send`, `fundrawtransaction`, `walletcreatefundedpsbt` the doc is incorrect until a future commit. Commits should be atomically corrects by themself, so probably using a single commit for all RPCs using `FundTxDoc` is a better option.
polespinasa (Migrated from github.com) commented 2026-08-12 13:45:33 +00:00

in ebf0e4cd23836781d6df9e58c7883f343a08fdde wallet, rpc: deprecate replaceable in walletcreatefundedpsbt, fundrawtransaction, send

The comment is incorrect, depreacted RBF is not explicitly enabled as this commit removes it, probably should change the comment and mention that is enabled by wallet defaults.

in ebf0e4cd23836781d6df9e58c7883f343a08fdde wallet, rpc: deprecate `replaceable` in walletcreatefundedpsbt, fundrawtransaction, send The comment is incorrect, depreacted RBF is not explicitly enabled as this commit removes it, probably should change the comment and mention that is enabled by wallet defaults.
polespinasa (Migrated from github.com) commented 2026-08-12 13:34:54 +00:00

in add1bf99e16139fe9be826aa42e300b54dc2806a wallet, rpc: deprecate replaceable argument in bumpfee, psbtbumpfee RPCs

testing bumpfee with replaceable = False is removed and not added in any other place later. This removes test coverage.

in add1bf99e16139fe9be826aa42e300b54dc2806a wallet, rpc: deprecate replaceable argument in bumpfee, psbtbumpfee RPCs testing bumpfee with `replaceable = False` is removed and not added in any other place later. This removes test coverage.
polespinasa (Migrated from github.com) commented 2026-08-12 13:52:41 +00:00

in ee5499a wallet, test: add test cases for deprecated RBF features

nit: Probably should add a guard that max takes a non empty value.

in ee5499a wallet, test: add test cases for deprecated RBF features nit: Probably should add a guard that max takes a non empty value.
polespinasa (Migrated from github.com) commented 2026-08-12 13:48:20 +00:00

in ee5499af965c7a835a3472e11d4e2ee1d7010ad7 wallet, test: add test cases for deprecated RBF features

This tests feels wrong, it is not testing that the RPC error is enforced, only that, in case it fails, the error is the expected one.

I think the same approach used for createrawtransaction and createpsbt should be followed.

in ee5499af965c7a835a3472e11d4e2ee1d7010ad7 wallet, test: add test cases for deprecated RBF features This tests feels wrong, it is not testing that the RPC error is enforced, only that, in case it fails, the error is the expected one. I think the same approach used for `createrawtransaction` and `createpsbt` should be followed.
polespinasa (Migrated from github.com) commented 2026-08-12 13:49:54 +00:00

in ee5499a wallet, test: add test cases for deprecated RBF features

This is a bit a duplicated comment from others I left, but just to summarize, this is not covering the cases for Replaceable=False for send, sendtoaddress, sendmany and sendall

in ee5499a wallet, test: add test cases for deprecated RBF features This is a bit a duplicated comment from others I left, but just to summarize, this is not covering the cases for `Replaceable=False` for `send`, `sendtoaddress`, `sendmany` and `sendall`
polespinasa (Migrated from github.com) commented 2026-08-12 13:42:19 +00:00

in 77ff18e wallet, rpc: deprecate replaceable argument in sendall RPC

sendall with replaceable = False is no longer tested after this commit, until the feature is removed it should be tested.

in 77ff18e wallet, rpc: deprecate replaceable argument in sendall RPC sendall with replaceable = False is no longer tested after this commit, until the feature is removed it should be tested.
DrahtBot commented 2026-08-14 17:52:08 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
sedited commented 2026-09-23 14:26:15 +00:00 (Migrated from github.com)

Ping for rebase @rkrux.

Ping for rebase @rkrux.
First-time contributor

2 additional verified findings in the Review report.

Earlier concerns remain unresolved; see the Run archive linked from the Review report.

🟠 Minor · Explicit non-signalling inputs still depend on deprecated replaceable=false

For send, sendall, and walletcreatefundedpsbt, all-non-signalling explicit inputs still need replaceable=false, now gated behind a startup flag; no current caller producing this input was found.

Location: src/wallet/rpc/spend.cpp:1485 (head).

🔵 Suggestion · Fee-bump deprecation rejection is not tested

The disabled-flag phase never calls bumpfee or psbtbumpfee with replaceable, so removing their separate gate would leave the current assertions passing.

Location: test/functional/wallet_deprecated_rbf.py:60 (head).

🔵 Suggestion · The test no longer verifies the -walletrbf=0 default

The rewritten test checks explicit replaceable overrides and the startup warning, but loses the assertion that -walletrbf=0 affects transactions created without an override.

Location: test/functional/wallet_deprecated_rbf.py:30 (base).

🔵 Suggestion · Wallet-added inputs lose replaceable=false coverage

The forced-funding walletcreatefundedpsbt case now tests signalling defaults, while its compatibility replacement adds no inputs and runs under -walletrbf=0, masking an ignored false override.

Location: test/functional/rpc_psbt.py:1250 (head).

🔵 Suggestion · The non-signalling test accepts signalling sequences

check_rbf_signalling(..., rbf_signalling=False) excludes only 0xfffffffd, so lower sequence values that still signal BIP125 pass the assertion.

Location: test/functional/wallet_deprecated_rbf.py:43 (head).

🔵 Suggestion · The Creator fixture changes with the default instead of retaining its vector

The Creator check in the BIP 174 test-vector section now expects default signalling sequences rather than its original final-sequence transaction.

Location: test/functional/data/rpc_psbt.json:236 (head).

Review coverage was incomplete.


Reviewed: cb12ebf07f8e · Review report · Previous reports

permalink

<!-- forgejo-review-bot:bitcoin/bitcoin --> <!-- ralph-engine:current:95cedc5d372e2509a5cb777a0ac827f72f4380472ef1dd5dd7371b27772a2c7e:1ed10c4979af6fc548d6b8d4534d505e02e84ac4b0aa4f8633555b2ba75119e8 --> <!-- ralph-base:19128e8b77553e4362fcbf3cb8f3f7dc5a2e4253 --> <!-- ralph-head:cb12ebf07f8e59a223514db7e10d2b4df48e40bf --> <!-- ralph-case:deb25788a2730f4eacc804fe0fa3633c48440ba002f68a62df92e01c80c600df --> [2 additional verified findings in the Review report](<https://review.fish.foo/report/35433-cb12ebf07f8e59a223514db7e10d2b4df48e40bf-2958-5.html>). Earlier concerns remain unresolved; see the Run archive linked from the Review report. **🟠 Minor · Explicit non-signalling inputs still depend on deprecated `replaceable=false`** For `send`, `sendall`, and `walletcreatefundedpsbt`, all-non-signalling explicit inputs still need `replaceable=false`, now gated behind a startup flag; no current caller producing this input was found. Location: [`src/wallet/rpc/spend.cpp:1485`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/cb12ebf07f8e59a223514db7e10d2b4df48e40bf/src/wallet/rpc/spend.cpp#L1485>) (head). **🔵 Suggestion · Fee-bump deprecation rejection is not tested** The disabled-flag phase never calls `bumpfee` or `psbtbumpfee` with `replaceable`, so removing their separate gate would leave the current assertions passing. Location: [`test/functional/wallet_deprecated_rbf.py:60`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/cb12ebf07f8e59a223514db7e10d2b4df48e40bf/test/functional/wallet_deprecated_rbf.py#L60>) (head). **🔵 Suggestion · The test no longer verifies the `-walletrbf=0` default** The rewritten test checks explicit `replaceable` overrides and the startup warning, but loses the assertion that `-walletrbf=0` affects transactions created without an override. Location: [`test/functional/wallet_deprecated_rbf.py:30`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/19128e8b77553e4362fcbf3cb8f3f7dc5a2e4253/test/functional/wallet_deprecated_rbf.py#L30>) (base). **🔵 Suggestion · Wallet-added inputs lose `replaceable=false` coverage** The forced-funding `walletcreatefundedpsbt` case now tests signalling defaults, while its compatibility replacement adds no inputs and runs under `-walletrbf=0`, masking an ignored false override. Location: [`test/functional/rpc_psbt.py:1250`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/cb12ebf07f8e59a223514db7e10d2b4df48e40bf/test/functional/rpc_psbt.py#L1250>) (head). **🔵 Suggestion · The non-signalling test accepts signalling sequences** `check_rbf_signalling(..., rbf_signalling=False)` excludes only `0xfffffffd`, so lower sequence values that still signal BIP125 pass the assertion. Location: [`test/functional/wallet_deprecated_rbf.py:43`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/cb12ebf07f8e59a223514db7e10d2b4df48e40bf/test/functional/wallet_deprecated_rbf.py#L43>) (head). **🔵 Suggestion · The Creator fixture changes with the default instead of retaining its vector** The Creator check in the BIP 174 test-vector section now expects default signalling sequences rather than its original final-sequence transaction. Location: [`test/functional/data/rpc_psbt.json:236`](<https://git.fish.foo/bitcoin/bitcoin/src/commit/cb12ebf07f8e59a223514db7e10d2b4df48e40bf/test/functional/data/rpc_psbt.json#L236>) (head). Review coverage was incomplete. <!-- Review tier: sensitive --> --- Reviewed: [`cb12ebf07f8e`](<https://git.fish.foo/bitcoin/bitcoin/commit/cb12ebf07f8e59a223514db7e10d2b4df48e40bf>) · [Review report](<https://review.fish.foo/report/35433-cb12ebf07f8e59a223514db7e10d2b4df48e40bf-2958-5.html>) · [Previous reports](<https://review.fish.foo/traces/35433/>) [permalink](<https://review.fish.foo/report/35433-cb12ebf07f8e59a223514db7e10d2b4df48e40bf-2958-5.html>)
rkrux (Migrated from github.com) reviewed 2026-10-26 10:43:03 +00:00
rkrux (Migrated from github.com) commented 2026-10-26 10:43:03 +00:00

Addressed during rebase.

Addressed during rebase.
rkrux (Migrated from github.com) reviewed 2026-10-26 13:02:56 +00:00
rkrux (Migrated from github.com) commented 2026-10-26 13:02:56 +00:00

Not that important to test this field in bumpfee but added coverage for it.

Not that important to test this field in bumpfee but added coverage for it.
rkrux (Migrated from github.com) reviewed 2026-10-26 13:03:06 +00:00
rkrux (Migrated from github.com) commented 2026-10-26 13:03:06 +00:00

Merged the two commits affecting the 4 RPCs.

Merged the two commits affecting the 4 RPCs.
rkrux (Migrated from github.com) reviewed 2026-10-26 13:03:11 +00:00
rkrux (Migrated from github.com) commented 2026-10-26 13:03:11 +00:00

Addressed.

Addressed.
rkrux (Migrated from github.com) reviewed 2026-10-26 13:03:16 +00:00
rkrux (Migrated from github.com) commented 2026-10-26 13:03:16 +00:00

Yes, this flow was outdated making this comment incorrect - updated.

Yes, this flow was outdated making this comment incorrect - updated.
rkrux (Migrated from github.com) reviewed 2026-10-26 13:03:19 +00:00
rkrux (Migrated from github.com) commented 2026-10-26 13:03:19 +00:00

Added an assertion in the try block in case the exception is not thrown.

Added an assertion in the try block in case the exception is not thrown.
rkrux (Migrated from github.com) reviewed 2026-10-26 13:03:23 +00:00
rkrux (Migrated from github.com) commented 2026-10-26 13:03:23 +00:00

Addressed.

Addressed.
rkrux (Migrated from github.com) reviewed 2026-10-26 13:03:27 +00:00
rkrux (Migrated from github.com) commented 2026-10-26 13:03:27 +00:00

Added.

Added.
rkrux (Migrated from github.com) reviewed 2026-10-26 13:03:31 +00:00
rkrux (Migrated from github.com) commented 2026-10-26 13:03:31 +00:00

It was using 2, updated to 4 now.

It was using 2, updated to 4 now.
achow101 commented 2026-11-04 21:25:26 +00:00 (Migrated from github.com)
ACK dc62ab2ca9934a8e49eb153071bd523c897cfb47
fanquake (Migrated from github.com) reviewed 2026-11-12 12:31:25 +00:00
fanquake (Migrated from github.com) commented 2026-11-12 12:31:26 +00:00
`sendmany`, `sendall`, `bumpfee`, and `psbtbumpfee`. (#35433)
```suggestion `sendmany`, `sendall`, `bumpfee`, and `psbtbumpfee`. (#35433) ```
rkrux (Migrated from github.com) reviewed 2026-11-23 07:59:30 +00:00
rkrux (Migrated from github.com) commented 2026-11-23 07:59:30 +00:00

Addressed.

Addressed.
rkrux commented 2026-11-23 08:48:33 +00:00 (Migrated from github.com)

Rebased over master to remove usage of replaceable argument added in the recently merged PR #36040 that was causing test failures.

Rebased over master to remove usage of `replaceable` argument added in the recently merged PR #36040 that was causing test failures.
polespinasa (Migrated from github.com) reviewed 2026-11-23 11:21:54 +00:00
polespinasa (Migrated from github.com) left a comment

ACK cb12ebf07f

I think it is worth to address the first Ralph's comment #35433 (comment)

ACK cb12ebf07f8e59a223514db7e10d2b4df48e40bf I think it is worth to address the first Ralph's comment https://git.fish.foo/bitcoin/bitcoin/pulls/35433#issuecomment-609561
polespinasa (Migrated from github.com) commented 2026-11-23 11:19:56 +00:00

in 2abeff74dd wallet, rpc: deprecate replaceable in sendall, walletcreatefundedpsbt, fundrawtransaction, send

This should mention the -deprecatedrpc command that re-enables this feature. See the developer guidelines

in 2abeff74dd93dbec19f092399f42fb5e776373ee wallet, rpc: deprecate `replaceable` in sendall, walletcreatefundedpsbt, fundrawtransaction, send This should mention the `-deprecatedrpc` command that re-enables this feature. See the [developer guidelines](https://github.com/bitcoin/bitcoin/blob/master/doc/developer-notes.md#rpc-interface-guidelines)
w0xlt (Migrated from github.com) reviewed 2026-11-24 18:47:15 +00:00
w0xlt (Migrated from github.com) left a comment
ACK cb12ebf07f8e59a223514db7e10d2b4df48e40bf
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitcoin/bitcoin!35433
No description provided.