listreceivedbyaddress and getaddressesbyaccount return incorrect data #307

issue piotrnar opened this issue on June 7, 2011
  1. piotrnar commented at 4:40 PM on June 7, 2011: none

    "listreceivedbyaddress" and "getaddressesbyaccount" return not only Receiving, but also Sending addresses from the Address Book.

    http://forum.bitcoin.org/index.php?topic=13011.0

  2. piotrnar commented at 6:08 PM on June 7, 2011: none

    I don't know about bitcoin's source code, but after having a quick look inside, I believe in file rpc.c, function ListReceived(), where the is now: if (!AddressToHash160(strAddress, hash160))

    ... it should rather be: if (!AddressToHash160(strAddress, hash160) || !mapPubKeys.count(hash160))

    And similar fix for getaddressesbyaccount.

  3. carlosjhr64 commented at 7:55 PM on August 26, 2011: none

    I'm having the same problem. Seems there's no way to distinguish between receiving addresses and addresses the client has sent to using the rpc. Obviously, the client UI is doing it somehow to create the address book.

  4. alexwaters commented at 7:05 AM on September 6, 2011: contributor

    v0.3.21 has been deprecated: https://github.com/bitcoin/bitcoin/commit/ec74e8a44338202bfb82faa2cef4611cc37e7fa5

    Please submit a new issue if this persists in current versions.

  5. alexwaters closed this on Sep 6, 2011

  6. dexX7 referenced this in commit 621e272c75 on May 13, 2015
  7. dexX7 referenced this in commit c6bf83ed2b on Dec 6, 2015
  8. ptschip referenced this in commit 8b965f287a on Feb 20, 2017
  9. CodeShark referenced this in commit 375ee50145 on May 4, 2017
  10. classesjack referenced this in commit b91fcc2386 on Jan 2, 2018
  11. 0xartem referenced this in commit 5670406f7a on Feb 19, 2019
  12. lateminer referenced this in commit 3be7133e24 on Oct 16, 2019
  13. MarcoFalke 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-05-03 15:16 UTC

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