File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -732,7 +732,8 @@ static UniValue listaddresses(const JSONRPCRequest& request)
732
732
{
733
733
// Only get basecoin and stealth addresses
734
734
if (!((item.first .type () == typeid (WitnessV0KeyHash)) ||
735
- (item.first .type () == typeid (CStealthAddress)))) continue ;
735
+ (item.first .type () == typeid (CStealthAddress)) ||
736
+ (item.first .type () == typeid (CKeyID)))) continue ;
736
737
// Only get mine
737
738
if (!pwallet->IsMine (item.first )) continue ;
738
739
// If we're balance only, require a balance
@@ -743,9 +744,12 @@ static UniValue listaddresses(const JSONRPCRequest& request)
743
744
if (item.first .type () == typeid (CStealthAddress)) {
744
745
entry.pushKV (" address" , EncodeDestination (item.first , true ));
745
746
entry.pushKV (" amount" , ValueFromAmount (AnonBalances[item.first ]));
746
- } else {
747
+ } else if (item. first . type () == typeid (WitnessV0KeyHash)) {
747
748
entry.pushKV (" address" , EncodeDestination (item.first ));
748
749
entry.pushKV (" amount" , ValueFromAmount (balances[item.first ]));
750
+ } else {
751
+ entry.pushKV (" address" , EncodeDestination (item.first , false ));
752
+ entry.pushKV (" amount" , ValueFromAmount (balances[item.first ]));
749
753
}
750
754
751
755
entry.pushKV (" label" , item.second .name );
You can’t perform that action at this time.
0 commit comments