Skip to content

listreceivedbyaddress and getaddressesbyaccount return incorrect data #307

Closed

Description

@piotrnar

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

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

Activity

  1. piotrnar commented on Jun 7, 2011

    @piotrnar
    Author

    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.

  2. carlosjhr64 commented on Aug 26, 2011

    @carlosjhr64

    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.

  3. alexwaters commented on Sep 6, 2011

    @alexwaters
    Contributor

    v0.3.21 has been deprecated: ec74e8a

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

  4. added a commit that references this issue on May 13, 2015
  5. added a commit that references this issue on Dec 6, 2015
  6. added a commit that references this issue on Feb 20, 2017
  7. added a commit that references this issue on May 4, 2017
  8. added a commit that references this issue on Jan 2, 2018
  9. added a commit that references this issue on Oct 16, 2019
  10. locked as resolved and limited conversation to collaborators on Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions