mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
rpc: fix bootstrap RPC payment RPC being made in raw JSON, not JSON RPC
This commit is contained in:
parent
81c2658989
commit
8231c7cd04
1 changed files with 5 additions and 5 deletions
|
@ -2944,7 +2944,7 @@ namespace cryptonote
|
||||||
RPC_TRACKER(rpc_access_info);
|
RPC_TRACKER(rpc_access_info);
|
||||||
|
|
||||||
bool r;
|
bool r;
|
||||||
if (use_bootstrap_daemon_if_necessary<COMMAND_RPC_ACCESS_INFO>(invoke_http_mode::JON, "rpc_access_info", req, res, r))
|
if (use_bootstrap_daemon_if_necessary<COMMAND_RPC_ACCESS_INFO>(invoke_http_mode::JON_RPC, "rpc_access_info", req, res, r))
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
// if RPC payment is not enabled
|
// if RPC payment is not enabled
|
||||||
|
@ -3016,7 +3016,7 @@ namespace cryptonote
|
||||||
{
|
{
|
||||||
RPC_TRACKER(rpc_access_submit_nonce);
|
RPC_TRACKER(rpc_access_submit_nonce);
|
||||||
bool r;
|
bool r;
|
||||||
if (use_bootstrap_daemon_if_necessary<COMMAND_RPC_ACCESS_SUBMIT_NONCE>(invoke_http_mode::JON, "rpc_access_submit_nonce", req, res, r))
|
if (use_bootstrap_daemon_if_necessary<COMMAND_RPC_ACCESS_SUBMIT_NONCE>(invoke_http_mode::JON_RPC, "rpc_access_submit_nonce", req, res, r))
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
// if RPC payment is not enabled
|
// if RPC payment is not enabled
|
||||||
|
@ -3075,7 +3075,7 @@ namespace cryptonote
|
||||||
RPC_TRACKER(rpc_access_pay);
|
RPC_TRACKER(rpc_access_pay);
|
||||||
|
|
||||||
bool r;
|
bool r;
|
||||||
if (use_bootstrap_daemon_if_necessary<COMMAND_RPC_ACCESS_PAY>(invoke_http_mode::JON, "rpc_access_pay", req, res, r))
|
if (use_bootstrap_daemon_if_necessary<COMMAND_RPC_ACCESS_PAY>(invoke_http_mode::JON_RPC, "rpc_access_pay", req, res, r))
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
// if RPC payment is not enabled
|
// if RPC payment is not enabled
|
||||||
|
@ -3134,7 +3134,7 @@ namespace cryptonote
|
||||||
RPC_TRACKER(rpc_access_data);
|
RPC_TRACKER(rpc_access_data);
|
||||||
|
|
||||||
bool r;
|
bool r;
|
||||||
if (use_bootstrap_daemon_if_necessary<COMMAND_RPC_ACCESS_DATA>(invoke_http_mode::JON, "rpc_access_data", req, res, r))
|
if (use_bootstrap_daemon_if_necessary<COMMAND_RPC_ACCESS_DATA>(invoke_http_mode::JON_RPC, "rpc_access_data", req, res, r))
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
if (!m_rpc_payment)
|
if (!m_rpc_payment)
|
||||||
|
@ -3162,7 +3162,7 @@ namespace cryptonote
|
||||||
RPC_TRACKER(rpc_access_account);
|
RPC_TRACKER(rpc_access_account);
|
||||||
|
|
||||||
bool r;
|
bool r;
|
||||||
if (use_bootstrap_daemon_if_necessary<COMMAND_RPC_ACCESS_ACCOUNT>(invoke_http_mode::JON, "rpc_access_account", req, res, r))
|
if (use_bootstrap_daemon_if_necessary<COMMAND_RPC_ACCESS_ACCOUNT>(invoke_http_mode::JON_RPC, "rpc_access_account", req, res, r))
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
if (!m_rpc_payment)
|
if (!m_rpc_payment)
|
||||||
|
|
Loading…
Reference in a new issue