From dfb95d964ccd5dbc7cdd15ca0a5730ce097c33f1 Mon Sep 17 00:00:00 2001 From: selsta Date: Wed, 30 Sep 2026 19:56:05 +0200 Subject: [PATCH] wallet2: sanitize untrusted daemon status in sweep unmixable (cherry picked from commit 144b3f9e644c0b1d4ad994b99edf6c355b38e533) --- src/wallet/wallet2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 4c929caad..17c2d5d77 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -12479,7 +12479,7 @@ std::vector wallet2::select_available_outputs_from_histogram(uint64_t co uint64_t pre_call_credits = m_rpc_payment_state.credits; req_t.client = get_client_signature(); bool r = net_utils::invoke_http_json_rpc("/json_rpc", "get_output_histogram", req_t, resp_t, *m_http_client, rpc_timeout); - THROW_ON_RPC_RESPONSE_ERROR(r, {}, resp_t, "get_output_histogram", error::get_histogram_error, resp_t.status); + THROW_ON_RPC_RESPONSE_ERROR(r, {}, resp_t, "get_output_histogram", error::get_histogram_error, get_rpc_status(resp_t.status)); uint64_t cost = req_t.amounts.empty() ? COST_PER_FULL_OUTPUT_HISTOGRAM : (COST_PER_OUTPUT_HISTOGRAM * req_t.amounts.size()); check_rpc_cost("get_output_histogram", resp_t.credits, pre_call_credits, cost); }