List Accounts Fix (Issue 76) #126

pull lachesis wants to merge 1 commits into bitcoin:master from lachesis:listaccountsfix changing 1 files +3 −1
  1. lachesis commented at 10:37 PM on March 20, 2011: contributor

    Addresses from the sending tab in wxGUI's addressbook appear in listaccounts. The RPC will happily return that address even though it isn't yours.

    This is a problem when switching from wxGUI to a RPC UI.

    Fixed by adding

    foreach(const PAIRTYPE(string, string)& entry, mapAddressBook)  
       uint160 hash160;
       if(AddressToHash160(entry.first, hash160) && mapPubKeys.count(hash160)) // This address belongs to me
           mapAccountBalances[entry.second] = 0;
    

    to make sure that mapAccountBalances doesn't contain any addresses that we don't have in our key list.

  2. Fixed issue 76 -- RPC error where addresses from addressbook's sending tab appear in listaccounts 75ef232861
  3. lachesis closed this on Mar 20, 2011

  4. dexX7 referenced this in commit 3ec33ff8a7 on Sep 15, 2014
  5. sipa referenced this in commit a064934ec0 on Dec 4, 2014
  6. sipa referenced this in commit 87bddb7a3a on Dec 4, 2014
  7. sipa referenced this in commit eb6347679b on Dec 5, 2014
  8. dexX7 referenced this in commit 3a4940ed16 on Jul 9, 2015
  9. rebroad referenced this in commit 4b7bf01a7d on Dec 7, 2016
  10. deadalnix referenced this in commit 25d125ec26 on Jan 19, 2017
  11. jtimon referenced this in commit 18a6c4df6d on Apr 20, 2017
  12. classesjack referenced this in commit 13e8a3165e on Jan 2, 2018
  13. attilaaf referenced this in commit 3bb7288a18 on Jan 13, 2020
  14. Losangelosgenetics referenced this in commit c431a89ef9 on Mar 12, 2020
  15. rajarshimaitra referenced this in commit 0a117a0497 on Mar 23, 2021
  16. rajarshimaitra referenced this in commit 8caa9ffa3f on Aug 5, 2021
  17. DrahtBot locked this on Sep 8, 2021

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

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