watch-only getwalletinfo returns some incorrect values (although the fields are deprecated) #20743

issue mjdietzx opened this issue on December 22, 2020
  1. mjdietzx commented at 3:33 AM on December 22, 2020: contributor

    I saw some unexpected behavior when testing for v0.21.0 release: #20555 (comment)

    After looking into it more:

    Is there anything we need to do here?

    • totally remove these fields from rpc response since they've been deprecate since v0.19.0
    • exclude fields unless a deprecated flag is passed
    • fix
    • do nothing since it's deprecated?
  2. mjdietzx added the label Bug on Dec 22, 2020
  3. sipa commented at 3:37 AM on December 22, 2020: member

    I think this is expected. They're reporting spendable balance, not watch-only balance. Was this different in other releases?

  4. mjdietzx commented at 3:45 AM on December 22, 2020: contributor

    Ah yeah, only unexpected to me I guess.

    I see that these fields are Identical to getbalances().mine in the RPCHelpMan. And that's the case for my watch-only wallet. getbalances.mine are all 0, and getbalances.watchonly are all the correct values ✅

    Is there anything we should do with these deprecated fields? Or do we just leave as-is (and I'll close this issue)?

  5. jonatack commented at 6:19 AM on December 22, 2020: member

    See the discussion in #18451

  6. MarcoFalke commented at 7:30 AM on December 22, 2020: member

    The response is correct (0) according to the documentation: https://bitcoincore.org/en/doc/0.20.0/rpc/wallet/getwalletinfo/

    I don't think this is a bug.

  7. MarcoFalke closed this on Dec 22, 2020

  8. DrahtBot locked this on Feb 15, 2022

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-04-20 18:14 UTC

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