test: remove usages of MAX_BIP125_RBF_SEQUENCE constant from functional tests #35442

pull rkrux wants to merge 13 commits into bitcoin:master from rkrux:rbfsequence-test changing 18 files +400 −310
  1. rkrux commented at 1:46 PM on June 2, 2026: contributor

    Partially fixes #32661.

    Depends on #35433 from which the first 11 commits are added here and will be removed when this PR is undrafted. Only the last 2 commits are specific to this PR.

    This is in line with the removal and deprecation of BIP 125 RBF signalling from the codebase.

  2. wallet: switch default wallet rbf from true to false
    With the nodes running fullrbf, wallet doesn't need to opt into RBF. This patch
    switches the default of wallet rbf to false. Users still have the option to
    optin RBF via the individual transaction (and PSBT) creation RPCs - for now.
    b74ffabcff
  3. doc: update release notes of PR 34917 to mention new default wallet rbf value aa722b592a
  4. wallet, rpc: deprecate replaceable argument in bumpfee, psbtbumpfee RPCs d7efd0f89c
  5. wallet, test: replace rbf_node with node in wallet_bumpfee.py
    Post deprecation of -walletrbf startup option and removal of the same
    option from the wallet_bumpfee.py test, the second node in this test
    is no longer a rbf node, so update its name to reflect so.
    
    Also update the rbf_node_address correspondingly.
    5870df54ca
  6. wallet, rpc: deprecate replaceable argument in sendall RPC 6d7e895a63
  7. wallet, rpc: deprecate replaceable argument in walletcreatefundedpsbt, fundrawtransaction f6b690bfcb
  8. wallet, rpc: deprecate replaceable argument in send RPC 590865b645
  9. wallet, rpc: deprecate replaceable argument in sendtoaddress, sendmany RPCs f5e33e2bee
  10. wallet, rpc: deprecate replaceable argument in createrawtransaction, createpsbt 32494df131
  11. wallet, test: add test cases for deprecated RBF features
    Tested RPCs: createrawtransaction, fundrawtransaction, createpsbt, bumpfee
    walletcreatefundedpsbt, send, sendtoaddress, sendmany, sendall, psbtbumpfee.
    ed7e67ef8b
  12. doc: update release notes of 34917 mentioning `replaceable` deprecation 17d9368760
  13. test: remove usage of MAX_BIP125_RBF_SEQUENCE constant in non-wallet tests
    Remove the usage in all the tests where used except the ones where the
    sequence is set to unique values to avoid creating duplicate transactions
    simultaneously.
    8e8765e46d
  14. test: remove usages of MAX_BIP125_RBF_SEQUENCE in wallet tests except one
    Its usage is preserved only in wallet_deprecated_rbf.py and thus the constant
    is moved there. This will be removed as well in the next release when BIP 125
    deprecated stuff is removed.
    7e4a0c57fc
  15. DrahtBot added the label Tests on Jun 2, 2026
  16. DrahtBot commented at 1:46 PM on June 2, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35442.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process. A summary of reviews will appear here.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #35543 (test: introduce ExtendedPrivateKey and ExtendedPublicKey classes by rkrux)
    • #35472 (test: add coverage for feebumper uncomputable cluster error path by 151henry151)
    • #35433 (wallet: deprecate replaceable argument from transaction (and psbt) creation (and modification) RPCs by rkrux)
    • #35302 (Silent Payments: Sending (take 2) by Eunovo)
    • #35100 (rpc: Merge joinpsbts locktimes correctly by nervana21)
    • #32468 (rpc: generateblock to allow multiple outputs by polespinasa)
    • #29278 (Wallet: Add maxfeerate wallet startup option by ismaelsadeeq)

    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 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):

    • walletcreatefundedpsbt(..., False) in test/functional/rpc_psbt.py
    • walletcreatefundedpsbt(..., True) in test/functional/rpc_psbt.py

    <sup>2026-06-02 13:47:25</sup>

  17. maflcko commented at 11:20 AM on June 8, 2026: member

    Not sure if a small test-only fixup needs a separate pull request. Can those two commits not just be included in the prior pull?

    Also, it seems more important to remove MAX_BIP125_RBF_SEQUENCE from the real source code, so that the risk of pre-existing and future fingerprint vectors in this source code is reduced.

  18. rkrux commented at 9:45 AM on June 10, 2026: contributor

    it seems more important to remove MAX_BIP125_RBF_SEQUENCE from the real source code, so that the risk of pre-existing and future fingerprint vectors in this source code is reduced.

    Yes, it is more important but it can't be done cleanly until the feature is removed completely post deprecation. Whereas it can be done easily in functional tests because all the tests have been updated to not rely on this deprecated feature anymore.

    Can those two commits not just be included in the prior pull?

    I will look into it.

  19. rkrux commented at 12:14 PM on June 10, 2026: contributor

    I will look into it.

    I didn't want to increase the scope of the previous PR, that's why raised this separate PR here. I have pushed the last two test related commits in #35433 now but might remove them later if I notice they are making the review of that PR tougher for others.

  20. rkrux commented at 12:24 PM on June 10, 2026: contributor

    Actually, no.

    The first two commits here are from #35405 due to which these two commits can't be appended cleanly in #35433. I'll wait on the resolution of #35405.

  21. pablomartin4btc commented at 7:26 PM on June 12, 2026: member

    I'll wait on the resolution of #35405.

    Perhaps you can add that to the description too ("Depends on #35405 - first 2 commits - and #35433 - 9 commits"). Sorry, I'm late to the party and trying to follow the review order from the issue's pending list.

  22. in doc/release-notes-34917.md:25 in 7e4a0c57fc
      24 | +`createrawtransaction`, `fundrawtransaction`, `createpsbt`,
      25 | +`walletcreatefundedpsbt`, `send`, `sendtoaddress`, `sendmany`,
      26 | +`sendall`, `bumpfee`, and `psbtbumpfee`.
      27 | +
      28 | +Moreover, the default value of -walletrbf startup option has been
      29 | +switched to 0 in PR #35405.
    


    pablomartin4btc commented at 7:49 PM on June 12, 2026:

    I think that needs to be updated according to https://github.com/bitcoin/bitcoin/pull/35405/changes#r3340846939. Just for reference, I know this is still a draft.


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-06-24 17:51 UTC

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