I saw some unexpected behavior when testing for v0.21.0 release: #20555 (comment)
After looking into it more:
- confirmed that
getwalletinforeturns items:balance,unconfirmed_balance, andimmature_balanceare always 0 for watch-only wallets (confirmed with a failing unit test) - noticed that these fields had been deprecated in this commit https://github.com/bitcoin/bitcoin/commit/facfb4111d14a3b06c46690a2cca7ca91cea8a96
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?