mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 01:38:52 +00:00
wallet2: fix wrong name when checking RPC cost
This commit is contained in:
parent
5d850dde99
commit
db5d6e4602
@ -7460,7 +7460,7 @@ uint32_t wallet2::adjust_priority(uint32_t priority)
|
|||||||
getbh_req.client = get_client_signature();
|
getbh_req.client = get_client_signature();
|
||||||
bool r = net_utils::invoke_http_json_rpc("/json_rpc", "getblockheadersrange", getbh_req, getbh_res, *m_http_client, rpc_timeout);
|
bool r = net_utils::invoke_http_json_rpc("/json_rpc", "getblockheadersrange", getbh_req, getbh_res, *m_http_client, rpc_timeout);
|
||||||
THROW_ON_RPC_RESPONSE_ERROR(r, {}, getbh_res, "getblockheadersrange", error::get_blocks_error, get_rpc_status(getbh_res.status));
|
THROW_ON_RPC_RESPONSE_ERROR(r, {}, getbh_res, "getblockheadersrange", error::get_blocks_error, get_rpc_status(getbh_res.status));
|
||||||
check_rpc_cost("/sendrawtransaction", getbh_res.credits, pre_call_credits, N * COST_PER_BLOCK_HEADER);
|
check_rpc_cost("/getblockheadersrange", getbh_res.credits, pre_call_credits, N * COST_PER_BLOCK_HEADER);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getbh_res.headers.size() != N)
|
if (getbh_res.headers.size() != N)
|
||||||
|
Loading…
Reference in New Issue
Block a user