Repository navigation
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35405. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please copy-paste ConflictsReviewers, this pull request conflicts with the following ones:
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. |
This failing error would be fixed after #35381 is merged, putting this in draft until then. |
f701cd1 doc: fix typo in release notes of #34917 (rkrux) 7bc39e3 wallet, test: add wallet_deprecated_rbf.py for walletrbf deprecated keys & options (rkrux) 2cbbcb5 wallet, test: remove -deprecatedrpc=bip125 from wallet_send.py (rkrux) 307134b wallet, test: remove -deprecatedrpc=bip125 from wallet_migration.py (rkrux) 3ec550d wallet, test: remove -deprecatedrpc=bip125 from wallet_basic.py (rkrux) a52ea9b wallet, test: remove -walletrbf startup option from wallet_backwards_compatibility.py (rkrux) 4233092 wallet, test: remove -walletrbf startup option from wallet_backwards_compatibility.py (rkrux) 8cb6e40 wallet, test: remove -walletrbf startup option from wallet_listtransactions.py (rkrux) 0ee94b2 wallet, test: remove -deprecatedrpc=bip125 from wallet_listtransactions.py (rkrux) 5e833e0 wallet, test: -walletrbf startup option from wallet_bumpfee.py (rkrux) a2a2b17 wallet, test: remove -walletrbf startup option from rpc_psbt.py (rkrux) a3fe455 wallet: refactor to read -walletrbf only once instead of twice (rkrux) Pull request description: Prerequisite to #35404 and #35405. All these changes address the points raised in the review of PR #34917 here: #34917 (review). Essentially updating the existing wallet functional tests without using the -deprecatedrpc=bip125 and -walletrbf startup options. Instead, these two are added and tested via a singular new wallet_deprecated_rbf.py test that can be removed easily later when these startup options are completely removed from the wallet post deprecation. ACKs for top commit: maflcko: review ACK f701cd1 🌄 achow101: ACK f701cd1 Tree-SHA512: 700785062b5de8ee3b6c4f50570b769d56c6c4960f2b6e2a2e71be8085c6b51eaeb34fb158fae76f812fe82791aaa0c0277f964f0472cb0784b86caabe6d4ec9
maflcko
left a comment
There was a problem hiding this comment.
lgtm, maybe the pull description can repeat some of the broader motivating factors?
|
🚧 At least one of the CI tasks failed. HintsTry to run the tests locally, according to the documentation. However, a CI failure may still
Leave a comment here, if you need help tracking down a confusing failure. |
Yes, updated it. |
… relying on RBF default 9c1fcac wallet, test: fix sendall anti-fee-sniping when locktime is not specified (rkrux) 8877eec wallet: allow anti-fee-sniping in sendall RPC while not relying on RBF default (rkrux) Pull request description: Partially fixes #32661. Prerequisite to #35405. The test change in the second commit would fail without the presence of the first commit. ACKs for top commit: maflcko: review ACK 9c1fcac 🍅 xyzconstant: Tested ACK 9c1fcac polespinasa: code review ACK 9c1fcac sedited: ACK 9c1fcac Tree-SHA512: 048c1a6c64c104f8c27053e4dea139fb8740f30096f4d85daf23aa53a9ad21f0120151a7d1d6ea19b12d174976999335b3f9ac863800629774d8030b7f34918f
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.
polespinasa
left a comment
There was a problem hiding this comment.
ACK 073a4d1
tested with the GUI
|
ACK 073a4d1 Looks good to me |
|
I don't see why the option needs to be changed to default to false before it is removed. This has an actual effect on tranasctions and contradicts the end state of every transaction still using |
I don't fully understand this^ comment. There was a discussion in the previous deprecation PR #34917 around changing this default: #34917 (comment). It makes sense to me to stop signalling because of nodes being fullrbf. |
#32661 states:
Furthermore, I think the default that is used should be something that the wider wallet developer community should agree on for a best practice. We want to choose a sequence that reduces the risk of fingerprinting our user's transactions, not just revert it for the sake of reverting. Given that ~78% of current txs signal replacement, it may make sense to continue to use the signaling sequence even when it is meaningless. |
For context, this was also discussed here #34917 (comment) |
Maybe it could make sense to include that as motivation in this pull request, so that the motivation is self-contained and reviewers don't need to scroll down 22 comments into a thread and then follow links to find more about it. (IIRC there was an earlier comment with the same point in an earlier thread years ago, but I think GH search is broken, so trying to find it is tedious) Also, to extend that motivation, to remove the risk of this fingerprinting vector, either Generally, I think the number of possible finger-print vectors should be reduced, and the clearest way long-term seems to me to remove the vector that is the most temporary one and the most confusing one.
I agree that this should be something that ~everyone agrees on eventually. I presume OpTech (and other places) would pick this up after merge, so that the everyone has a chance to consider it. I understand that the recent ~70+% figure may point to a path that looks easy (get 70% to 100%), but I think wallets that recently upgraded to Moreover, imagine a new developer reading wallet code (or writing a new wallet) in a decade or so, and them having to think about which sequence number to use, where two sequence numbers have the exact same meaning in practise. The risk of them introducing a new fingerprint by accident seems smaller if |
Done. |
A relevant BIP should be written that documents a recommended sequence number.
While going forward, software may revert if that is the recommendation, this change raises a fingerprint for those using software that already exists. In general, I don't think we should move forward with changing the default without first establishing what other wallets are going/likely to do. This seems like the kind of thing that should be discussed on the mailing list or delving first, and ideally, an informational BIP should be written as well. |
I've posted on the mailing list (pending approval). |
|
Another option is to "randomly" signal or not signal, until all wallets agree on a specific setting, this would avoid fingerprint Core. Similar to what we do with backdating the locktime to avoid leaking on which block the tx was created.. |
This option did come to my mind earlier but I decided against it because it doesn't help with the other motivation this PR has - which is to clean up the wallet codebase by removing the occurrences of this BIP 125 signalling constant and related variables in coin control, which makes the code longer and harder to reason about imo. In fact, adding the randomness flow might just make the wallet code flow more confusing. Related to this clean up, a follow-up PR (to this and to #35433) is to clean up the functional tests: #35442. |
Thx. Assinged the 32.x milestone, because it makes sense to first figure out what the overall goal should be before deprecation happens. So if this pull isn't merged or closed before 32.x, we should probably revert 34917 as well for now. The correct order to me seems to be: (1) Decide whether to use |
Thanks, this is helpful. |
Correct me if I misunderstood your comment here but I believe deprecating the walletrbf option (#34917) and the replaceable argument in the wallet RPCs (#35433) are not dependent on this PR. The fingerprinting concern was raised in this PR because of changing the default but the rationale for deprecating still holds. Users still will have the option to signal for RBF by using the deprecatedrpc option but because the signalling is redundant now, it does make sense to deprecate it so that the users know that this signalling is not needed anymore. |
|
sure, they don't depend on each other code-wise. However, conceptually it feels a bit cleaner (and easier for users to follow) to first agree on the end-goal and then move toward that end-goal as reference goal. Let's recall the goal here is not to just deprecate things, because they can be deprecated. As I see it, the main motivation to deprecate it would be to reduce fingerprinting. (Sure there is some minimal maintenance overhead and confusion to keep the toggle, but outside of fingerprinting I don't see that as a large downside of keeping the toggle). So I think conceptually it makes more sense to first figure out fingerprinting and then do everything else afterwards under that umbrella. |
Ok, I will raise a revert PR later* if this PR is not merged before the cut-off for v32. |
I have a slightly different view on this. When I raised the PR, I didn't think that the main motivation was to reduce fingerprinting, although it is a good motivation. My main motivation was to improve user experience because I believe via deprecating it simplifies the overall flow of transaction creation for the user. Generally, I find it better if the user has to deal with fewer stuff while going through a workflow. It's an added advantage that the deprecation improves code readability and maintainability as well. |
Based on the responses in the ML from wallet developers in the community, I can see there is a preference of MAX-2 as the input sequence number in the transaction, even though it's not necessary.
I don't think I should do this. I feel that the flow of providing the replaceable option to the user should still be deprecated (and removed later). The MAX-2 as the input sequence number can stay in the codebase but I feel it doesn't need to be associated with the concept of the transaction being replaceable. I will rework the draft PR #35442 in order to achieve this. Meanwhile, I look forward to reviews on #35433. |
|
Closing this PR now after getting community feedback on ML. |
Partially fixes #32661.
This follows up a point raised in a review of a previous PR here: #34917 (comment).
With 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.