rpc: deprecate iswatchonly field of getaddressinfo #36864

pull w0xlt wants to merge 2 commits into bitcoin:master from w0xlt:rpc-getaddressinfo-deprecate-iswatchonly changing 4 files +16 −3
  1. w0xlt commented at 4:28 AM on November 14, 2026: contributor

    Since #32618, getaddressinfo returns iswatchonly: false for every address. It was kept and marked "(DEPRECATED)" so it could be removed later without surprising users (review comment), but it was never put behind -deprecatedrpc. The v30 release notes also say it was already removed from all RPCs, which isn't true for getaddressinfo.

    This returns it only with -deprecatedrpc=iswatchonly, like startingheight in getpeerinfo (#34197), so it can be removed in the next release.

  2. rpc: deprecate iswatchonly field of getaddressinfo
    Since watch-only was removed from the wallet in #32618, iswatchonly is
    always false. It was kept and marked "(DEPRECATED)" in the help so that
    it could be removed later without surprising users, but it was never
    put behind -deprecatedrpc, although the v30 release notes say it was
    removed from all RPCs.
    
    Return it only with -deprecatedrpc=iswatchonly, as was done for the
    startingheight field of getpeerinfo, so it can be removed in the next
    release.
    375dc869d8
  3. DrahtBot added the label RPC/REST/ZMQ on Nov 14, 2026
  4. DrahtBot commented at 4:29 AM on November 14, 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 jonatack

    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

    Reviewers, this pull request conflicts with the following ones:

    • #36387 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36387.svg"></sub> (wallet: rpc: Deprecate encryptwallet RPC for encrypting existing wallets. by davidgumberg)

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

  5. doc: add release note for getaddressinfo iswatchonly deprecation 5b2f979c9e
  6. w0xlt force-pushed on Nov 14, 2026
  7. DrahtBot added the label CI failed on Nov 14, 2026
  8. DrahtBot removed the label CI failed on Nov 14, 2026
  9. fanquake commented at 9:23 AM on November 14, 2026: member
  10. in doc/release-notes-36864.md:7 in 5b2f979c9e
       0 | @@ -0,0 +1,7 @@
       1 | +Updated RPCs
       2 | +------------
       3 | +
       4 | +- The `getaddressinfo` RPC no longer returns the `iswatchonly` field unless
       5 | +  the configuration option `-deprecatedrpc=iswatchonly` is used. The field has
       6 | +  always been `false` since v30 and will be fully removed in the next major
       7 | +  release. (#36864)
    


    jonatack commented at 6:19 PM on November 14, 2026:

    Possibly helpful for users to add something like:

    (Use the private_keys_enabled field of RPC getwalletinfo to know if a wallet is watch-only.)

  11. in doc/release-notes-36864.md:4 in 5b2f979c9e
       0 | @@ -0,0 +1,7 @@
       1 | +Updated RPCs
       2 | +------------
       3 | +
       4 | +- The `getaddressinfo` RPC no longer returns the `iswatchonly` field unless
    


    jonatack commented at 6:21 PM on November 14, 2026:

    nit

    - RPC `getaddressinfo` no longer returns the `iswatchonly` field, unless
    
  12. in doc/release-notes-36864.md:6 in 5b2f979c9e
       0 | @@ -0,0 +1,7 @@
       1 | +Updated RPCs
       2 | +------------
       3 | +
       4 | +- The `getaddressinfo` RPC no longer returns the `iswatchonly` field unless
       5 | +  the configuration option `-deprecatedrpc=iswatchonly` is used. The field has
       6 | +  always been `false` since v30 and will be fully removed in the next major
    


    jonatack commented at 6:22 PM on November 14, 2026:

    nit

      always returned `false` since [#32618](/bitcoin-bitcoin/32618/) in v30 and will be fully removed in the next major
    
  13. jonatack commented at 6:22 PM on November 14, 2026: member

    ACK 5b2f979c9e474a641b90902c3a87dee93c8f2899

    Feel free to ignore the nits.


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-15 03:51 UTC

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