"listreceivedbyaddress" and "getaddressesbyaccount" return not only Receiving, but also Sending addresses from the Address Book.
listreceivedbyaddress and getaddressesbyaccount return incorrect data #307
issue piotrnar opened this issue on June 7, 2011-
piotrnar commented at 4:40 PM on June 7, 2011: none
-
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.
-
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.
-
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.
- alexwaters closed this on Sep 6, 2011
- dexX7 referenced this in commit 621e272c75 on May 13, 2015
- dexX7 referenced this in commit c6bf83ed2b on Dec 6, 2015
- ptschip referenced this in commit 8b965f287a on Feb 20, 2017
- CodeShark referenced this in commit 375ee50145 on May 4, 2017
- classesjack referenced this in commit b91fcc2386 on Jan 2, 2018
- 0xartem referenced this in commit 5670406f7a on Feb 19, 2019
- lateminer referenced this in commit 3be7133e24 on Oct 16, 2019
- MarcoFalke locked this on Sep 8, 2021
Contributors
Labels