Skip to content

Commit 968931e

Browse files
committed
[RPC] listcoldutxos: fix staking addresses base58 prefix
1 parent 4000b6e commit 968931e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1666,7 +1666,7 @@ UniValue listcoldutxos(const UniValue& params, bool fHelp)
16661666
entry.push_back(Pair("txidn", (int)i));
16671667
entry.push_back(Pair("amount", ValueFromAmount(out.nValue)));
16681668
entry.push_back(Pair("confirmations", pcoin->GetDepthInMainChain(false)));
1669-
entry.push_back(Pair("cold-staker", CBitcoinAddress(addresses[0]).ToString()));
1669+
entry.push_back(Pair("cold-staker", CBitcoinAddress(addresses[0], CChainParams::STAKING_ADDRESS).ToString()));
16701670
entry.push_back(Pair("coin-owner", CBitcoinAddress(addresses[1]).ToString()));
16711671
entry.push_back(Pair("whitelisted", fWhitelisted ? "true" : "false"));
16721672
results.push_back(entry);

0 commit comments

Comments
 (0)