mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 09:11:37 +00:00
WIP: test: remove usages of MAX_BIP125_RBF_SEQUENCE constant from functional tests #35442
No reviewers
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!35442
Loading…
Reference in a new issue
No description provided.
Delete branch "rbfsequence-test"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Partially fixes https://github.com/bitcoin/bitcoin/issues/32661.
Depends on https://github.com/bitcoin/bitcoin/pull/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.
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.
A summary of reviews will appear here.
Conflicts
Reviewers, this pull request conflicts with the following ones:
maxfeeratewallet 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.
LLM Linter (✨ experimental)
Possible places where named args for integral literals may be used (e.g.
func(x, /*named_arg=*/0)in C++, andfunc(x, named_arg=0)in Python):walletcreatefundedpsbt(..., False)intest/functional/rpc_psbt.pywalletcreatefundedpsbt(..., True)intest/functional/rpc_psbt.py2026-06-02 13:47:25
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_SEQUENCEfrom 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.
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.
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.
Perhaps you can add that to the description too ("Depends on https://github.com/bitcoin/bitcoin/pull/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.
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.
🐙 This pull request conflicts with the target branch and needs rebase.
⌛ There hasn't been much activity lately and the patch still needs rebase. What is the status here?
Re https://github.com/bitcoin/bitcoin/pull/35442#issuecomment-5787330791: Waiting on #35433 to get merged and then will see how to progress on this PR.
Base:
dd9d2b919d6a97907417bf9c4f539f182f04cc01Head:
7e4a0c57fca98407f7cca97886bdab23db6d0e4bFindings
Major
Default sendall inputs disable locktime activation (src/wallet/rpc/spend.cpp:1452, head)
When
sendallselects inputs automatically and the deprecated replaceable override is not enabled, the new default makesrbffalse and the automatic-input branch assignsSEQUENCE_FINAL. Final sequences disablenLockTime, so a caller-supplied nonzero locktime is ineffective. The same sequence preventsFinishTransactionfrom applying anti-fee-sniping; the existing default-pathwallet_sendalltest expects that behavior. The publicsendallRPC is the triggering input path; no external application caller was checked.Minor
Explicit fee rates override
-walletrbf=1(src/wallet/rpc/spend.cpp:226, head)With
-walletrbf=1,LoadWalletArgssetswallet.m_signal_rbfto true. If a wallet RPC request suppliesfee_ratewhile its per-request RBF setting is unset, this line engages the coin-control optional as false;CreateTransactionInternalthen uses that false value instead of the wallet setting. For example,sendtoaddresscallsSetFeeEstimateModeafter parsing itsreplaceableargument. No checked-in caller combining-walletrbf=1withfee_ratewas identified, so production impact is unconfirmed.Suggestions
Test funded transaction sequences for deprecated replaceable handling (test/functional/wallet_deprecated_rbf.py:59, head)
This case creates an already-RBF transaction, funds it without a
replaceableoption, then checksraw_tx_hexagain rather than the returnedfunded_tx_hex. The later wallet-result check only confirms that the transaction remains opt-in; it does not verify the funded transaction’s sequence or exerciseFundTransaction’s newly gated replaceable handling. Add a case under-deprecatedrpc=bip125where funding selects wallet inputs andreplaceable=trueis supplied, then assert the sequence infunded_tx_hex.Document how to re-enable the deprecated RPC argument (src/rpc/rawtransaction.cpp:120, head)
The changed argument descriptions label
replaceableas deprecated but do not tell RPC users that-deprecatedrpc=bip125restores its behavior. This also affects the wallet RPC descriptions. The developer notes require RPC help to mention the re-enabling flag. Add that guidance and qualify the existing behavior description.Design and approach
Concept and approach. The test cleanup does not establish that ordinary wallet transactions should change from MAX-2 to MAX-1. Resolve the sequence policy separately from deprecating the RBF control: retain MAX-2 as the default if the reported wallet-developer preference stands, or explain why MAX-1 is preferred. Issue #32661, review discussion, and reported preference
Review coverage was incomplete.
Review limitations
Full review report