multiwallet `validateaddress` tells me `ismine: false` without -rpcwallet arg #11324

issue dooglus opened this issue on September 13, 2017
  1. dooglus commented at 6:22 PM on September 13, 2017: contributor

    In master branch, 96ac26e56627f0c24213fcd3a1cce9fc95f1f661:

    I have two wallets loaded. I have the same privkey in both of them, but when I check using validateaddress it tells me "ismine": false,:

    $ bitcoin-cli validateaddress $addr | grep ismine
      "ismine": false,
    $ bitcoin-cli -rpcwallet=wallet.dat validateaddress $addr | grep ismine
      "ismine": true,

    Perhaps we shouldn't include ismine and iswatchonly in the output if we don't know which wallet we're talking about.

  2. achow101 commented at 7:25 PM on September 13, 2017: member

    validateaddress requests which wallet to use, but with multiple wallets, when a wallet is not specified, a nullptr is returned. This then results in validateaddress return ISMINE_NO because it does not have a wallet to use. This may actually be an issue with some other RPC calls that are not dedicated wallet RPCs (e.g. signrawtransaction).

    #10583 should fix this problem as it makes a dedicated RPC call for the wallet stuff of validateaddress.

  3. promag commented at 7:47 PM on September 13, 2017: member
  4. fanquake added the label RPC/REST/ZMQ on Sep 14, 2017
  5. jarolrod commented at 4:01 AM on January 14, 2021: member

    @fanquake can this be closed? #10583 addresses this and was merged.

  6. fanquake closed this on Jan 14, 2021

  7. DrahtBot locked this on Aug 18, 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-13 15:15 UTC

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