rpc: wallet: Schedule mixed-case confTarget option deprecation #36488

pull maflcko wants to merge 1 commits into bitcoin:master from maflcko:2610-confTarget changing 4 files +24 −3
  1. maflcko commented at 9:54 AM on October 9, 2026: member

    Since commit 91f6d2bc8ff4d4cd1b86daa370ec9d2d9662394d in 2020, the wallet accepts and documents conf_target for the fee bump RPC.

    So it seems time to cut the confusion and properly deprecate it with the next cycle.

  2. DrahtBot added the label RPC/REST/ZMQ on Oct 9, 2026
  3. DrahtBot commented at 9:54 AM on October 9, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--006a51241073e994b41acfe9ec718e94-->

    External sites

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

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

    Type Reviewers
    ACK seduless, willcl-ark
    Stale ACK fametrano

    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

    No conflicts as of last run.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  4. maflcko added this to the milestone 33.0 on Oct 9, 2026
  5. maflcko force-pushed on Oct 9, 2026
  6. DrahtBot added the label CI failed on Oct 9, 2026
  7. maflcko added the label Wallet on Oct 9, 2026
  8. maflcko force-pushed on Oct 9, 2026
  9. DrahtBot removed the label CI failed on Oct 9, 2026
  10. maflcko force-pushed on Oct 16, 2026
  11. maflcko force-pushed on Oct 20, 2026
  12. fametrano commented at 6:49 AM on October 25, 2026: none

    tACK fab22ac42e350d4b4481515fe8ba2a319a744389

    No test checks that confTarget still works under -deprecatedrpc=confTarget. The comment in rpc_deprecated.py asks that each deprecation tested there keep another functional test that still exercises it under the flag. wallet_bumpfee.py gains the flag, but its only confTarget call is the "should not both be set" error, so a change that broke confTarget behind the flag would still pass the tests. One bumpfee and one psbtbumpfee call with {"confTarget": 6} in that test would cover it.

    The rest matched. Without the flag, both RPCs return -32 for confTarget, alone or next to conf_target, before the txid is looked up. With the flag, confTarget bumps and the conflict error is unchanged. conf_target works either way, positional or named. The help and getopenrpcinfo list only conf_target.

    I measured this on regtest against a build of the head, with and without the flag, with calls sent through a client library I maintain. I can share the script and its output.

  13. maflcko commented at 9:03 AM on October 26, 2026: member

    No test checks that confTarget still works under -deprecatedrpc=confTarget.

    Your LLM-co-authored comment is just repeating what the Ralph LLM already said. There never was a test for this since 2020, the option was undocumented since then, so likely no user is using it. I don't think it makes sense to add a test for this now, given that such a test would be harder to review than the code change here by itself.

  14. sedited requested review from polespinasa on Nov 4, 2026
  15. seduless commented at 10:53 PM on November 10, 2026: contributor

    Reviewed fab22ac42e350d4b4481515fe8ba2a319a744389

    Looks good, but CI is stale and this needs a rebase since a merge to master breaks test/functional/rpc_deprecated.py (wallet setup was removed in #36333).

    Verified applying this after rebase fixes the functional tests.

    diff --git a/test/functional/rpc_deprecated.py b/test/functional/rpc_deprecated.py
    index 7114f29698..13c466523c 100755
    --- a/test/functional/rpc_deprecated.py
    +++ b/test/functional/rpc_deprecated.py
    @@ -6,2 +6,3 @@
     from test_framework.test_framework import BitcoinTestFramework
    +from test_framework.util import assert_raises_rpc_error
    
    @@ -29,3 +30,6 @@ class DeprecatedRpcTest(BitcoinTestFramework):
             self.log.info("Tests for deprecated RPC methods (if any)")
    -        self.log.info("Currently no tests for deprecated RPC methods")
    +        if self.is_wallet_compiled():
    +            self.log.info("Tests for deprecated wallet-related RPC methods (if any)")
    +            self.nodes[0].createwallet("ancient_wallet")
    +            wallet = self.nodes[0].get_wallet_rpc("ancient_wallet")
    
    
  16. maflcko force-pushed on Nov 11, 2026
  17. maflcko force-pushed on Nov 11, 2026
  18. DrahtBot added the label CI failed on Nov 11, 2026
  19. DrahtBot commented at 7:27 AM on November 11, 2026: contributor

    <!--85328a0da195eb286784d51f73fa0af9-->

    🚧 At least one of the CI tasks failed. <sub>Task lint: https://github.com/bitcoin/bitcoin/actions/runs/42978801758/job/130384066639</sub> <sub>LLM reason (✨ experimental): CI failed the Python lint check: Ruff reports assert_raises_rpc_error is undefined in test/functional/rpc_deprecated.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>

  20. maflcko commented at 7:29 AM on November 11, 2026: member

    thx, rebased and fixed the silent merge conflict (also added a comment to not remove the setup in the future, to avoid this kind of problem)

  21. DrahtBot removed the label CI failed on Nov 11, 2026
  22. rpc: wallet: Schedule mixed-case confTarget option deprecation fad45cacbc
  23. in doc/release-notes-36488.md:8 in fab26376fa
       0 | @@ -0,0 +1,8 @@
       1 | +Updated RPCs
       2 | +------------
       3 | +
       4 | +The deprecated `confTarget` option of the `bumpfee` and `psbtbumpfee` RPCs is
       5 | +now available only when the RPC server is started with
       6 | +`-deprecatedrpc=confTarget`.
       7 | +Use `conf_target` instead. The `confTarget` option will be removed in the next
       8 | +release.
    


    fanquake commented at 8:34 AM on November 11, 2026:

    (#36488)

  24. maflcko force-pushed on Nov 11, 2026
  25. fanquake requested review from willcl-ark on Nov 11, 2026
  26. seduless commented at 6:32 PM on November 11, 2026: contributor

    Tested ACK fad45cacbcac4831082d4fcf596c255fd9c5a55d

  27. willcl-ark approved
  28. willcl-ark commented at 2:29 PM on November 12, 2026: member

    ACK fad45cacbcac4831082d4fcf596c255fd9c5a55d

    Looks OK to me.

  29. fanquake merged this on Nov 12, 2026
  30. fanquake closed this on Nov 12, 2026

  31. maflcko deleted the branch on Nov 13, 2026


polespinasa

Milestone
33.0


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-11-25 17:51 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me