You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
listrecievedbyaddress with include_empty not filtering out "send" side of address book #16159
I noticed if you call listreceivedbyaddress with true for incude_empty it was skipping the cross-reference against mapTally. The skip causes the entire address book (including "send" purpose) to be included in the results erroneously. There should be a "if purpose not 'send' then include results".
Activity
kouloumos commentedon Sep 1, 2022
Addresses with a "send" purpose should not be included in the results of the
listreceivedby*RPCs.When does a "send" purpose is assigned?
addmultisigaddressRPC.setlabelRPC for an address that is not mine.How to reproduce (legacy & descriptor wallets):
w2_addr=$($w2 getnewaddress)w2_addrusing the GUI or use thesetlabelRPC with$w1 setlabel $w2_addr.w2_addris returned from$w1 -named listreceivedbyaddress include_empty=true.test: Add coverage for listreceivedby* excluding "send" addresses
test: Add coverage for listreceivedby* excluding "send" addresses
wallet: Exclude non-owned addresses from listreceivedby*
test: Add coverage for listreceivedby* excluding "send" addresses
Merge #35925: wallet, rpc: Exclude non-owned addresses from listrecei…