getaddressesbyaccount lists addresses with no private keys in a corrupted wallet #2544

issue gurcani opened this issue on April 21, 2013
  1. gurcani commented at 11:07 AM on April 21, 2013: none

    source : https://bitcointalk.org/index.php?topic=178657 using: 0.8.1 (same in 0.7.1) wallet.dat: old wallet created in 0.3.22 never explicitly upgraded.

    bitcoind accepts to use this wallet without warning, which is what I expect.

    but then, getaddressesbyaccount "", lists bunch of addresses some of which I have the private keys, BUT SOME OF WHICH I DON'T (in fact it lists addresses to which I sent btcs from this wallet in the past).

    I sent 10 btcs from vircurex to an old bitcointorrentz address which was somehow listed as my own address in my wallet, because of this.

    I suggest that getaddressesbyaccount actually verify that the wallet contains the private key before listing the address. I can't imagine the other behaviour being desirable.

    I hope this is useful. unfortunately I can't provide my wallet (and can't produce an empty wallet corrupted the same way), but I'll be happy to verify something if you need me to. just respond to my forum post above or pm me.

  2. laanwj removed the label Priority Medium on May 18, 2015
  3. laanwj commented at 3:44 PM on February 9, 2016: member

    Closing this as it is a specific, unreproducable case of a corrupted wallet.

  4. laanwj closed this on Feb 9, 2016

  5. MarcoFalke locked this on Sep 8, 2021
Contributors
Labels

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-21 15:15 UTC

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