mirror of
https://git.wownero.com/wownero/wownero.git
synced 2025-01-24 18:28:35 +00:00
wallet2: add missing parameters to get_output_histogram
This commit is contained in:
parent
41a66bf05b
commit
df9d59caff
@ -8135,6 +8135,7 @@ std::vector<size_t> wallet2::select_available_outputs_from_histogram(uint64_t co
|
|||||||
req_t.min_count = count;
|
req_t.min_count = count;
|
||||||
req_t.max_count = 0;
|
req_t.max_count = 0;
|
||||||
req_t.unlocked = unlocked;
|
req_t.unlocked = unlocked;
|
||||||
|
req_t.recent_cutoff = 0;
|
||||||
bool r = net_utils::invoke_http_json_rpc("/json_rpc", "get_output_histogram", req_t, resp_t, m_http_client, rpc_timeout);
|
bool r = net_utils::invoke_http_json_rpc("/json_rpc", "get_output_histogram", req_t, resp_t, m_http_client, rpc_timeout);
|
||||||
m_daemon_rpc_mutex.unlock();
|
m_daemon_rpc_mutex.unlock();
|
||||||
THROW_WALLET_EXCEPTION_IF(!r, error::no_connection_to_daemon, "select_available_outputs_from_histogram");
|
THROW_WALLET_EXCEPTION_IF(!r, error::no_connection_to_daemon, "select_available_outputs_from_histogram");
|
||||||
@ -8171,6 +8172,8 @@ uint64_t wallet2::get_num_rct_outputs()
|
|||||||
req_t.amounts.push_back(0);
|
req_t.amounts.push_back(0);
|
||||||
req_t.min_count = 0;
|
req_t.min_count = 0;
|
||||||
req_t.max_count = 0;
|
req_t.max_count = 0;
|
||||||
|
req_t.unlocked = true;
|
||||||
|
req_t.recent_cutoff = 0;
|
||||||
bool r = net_utils::invoke_http_json_rpc("/json_rpc", "get_output_histogram", req_t, resp_t, m_http_client, rpc_timeout);
|
bool r = net_utils::invoke_http_json_rpc("/json_rpc", "get_output_histogram", req_t, resp_t, m_http_client, rpc_timeout);
|
||||||
m_daemon_rpc_mutex.unlock();
|
m_daemon_rpc_mutex.unlock();
|
||||||
THROW_WALLET_EXCEPTION_IF(!r, error::no_connection_to_daemon, "get_num_rct_outputs");
|
THROW_WALLET_EXCEPTION_IF(!r, error::no_connection_to_daemon, "get_num_rct_outputs");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user