Merge 9eaef10801 into merged_master (Bitcoin PR bitcoin/bitcoin#25707)

This commit is contained in:
Byron Hambly 2024-11-04 11:26:40 +02:00
commit 1006327a13
28 changed files with 43 additions and 39 deletions

View file

@ -911,7 +911,7 @@ static void GetWalletBalances(UniValue& result)
UniValue balances(UniValue::VOBJ);
for (const UniValue& wallet : wallets.getValues()) {
const std::string wallet_name = wallet.get_str();
const std::string& wallet_name = wallet.get_str();
const UniValue getbalances = ConnectAndCallRPC(&rh, "getbalances", /* args=*/{}, wallet_name);
const UniValue& balance = find_value(getbalances, "result")["mine"]["trusted"];
balances.pushKV(wallet_name, balance);