10000 wallet: Remove ISMINE_WATCHONLY and watchonly from RPCs by achow101 · Pull Request #32618 · bitcoin/bitcoin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

wallet: Remove ISMINE_WATCHONLY and watchonly from RPCs #32618

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

achow101
Copy link
Member

Descriptor wallets do not use the watchonly behavior as it is not possible to mix watchonly and non-watchonly in a descriptor wallet. With legacy wallets now removed, all of the watchonly handling and reporting code is no longer needed. This PR removes watchonly options and results from the RPCs and the handling of watchonly things from the wallet's internals.

With all of the watchonly things removed, ISMINE_WATCH_ONLY is removed as well.

Split from #32523

Depends on #32594 for tests that are easier to read

@DrahtBot
Copy link
Contributor
DrahtBot commented May 26, 2025

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

Code Coverage & Benchmarks

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

Reviews

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

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #29062 (Wallet: (Refactor) GetBalance to calculate used balance by BrandonOdiwuor)
  • #27865 (wallet: Track no-longer-spendable TXOs separately by achow101)
  • #27286 (wallet: Keep track of the wallet's own transaction outputs in memory by achow101)
  • #25269 (wallet: re-activate "AmountWithFeeExceedsBalance" error by furszy)

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:

  • In src/wallet/coincontrol.h comment:
    “while requires all selected inputs be used” -> “while requiring all selected inputs to be used” [fixes awkward/missing gerund phrasing]

drahtbot_id_4_m

@achow101 achow101 force-pushed the delete-ismine-watchonly branch 2 times, most recently from ee431e4 to 2aa5c97 Compare June 14, 2025 00:56
@achow101 achow101 marked this pull request as ready for review June 14, 2025 00:56
@achow101
Copy link
Member Author

Ready for review

achow101 added 7 commits June 20, 2025 12:35
Test that when a watchonly wallet and the wallet with private keys fund
the same tx, the watchonly wallet should use a higher fee since it
should be estimating the size to be larger as it assumes the signer
cannot grind the R value.
Descriptor wallets do not have mixed mine and watchonly, so there is no
need to report a watchonly balance.
Descriptor wallets don't have a conception of watchonly within a wallet,
so remove all of these options and results from the RPCs
Descriptor wallets do not have a concept of watchonly within a wallet,
so remove the watchonly option from coin control.
ISMINE_WATCH_ONLY has been removed from all places it was being used,
and migration does not need ISMINE_WATCH_ONLY, so remove the enum.
@achow101 achow101 force-pushed the delete-ismine-watchonly branch from 2aa5c97 to 003a3cd Compare June 20, 2025 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0