rpc: on_send_raw_tx (bootstrap) - send to bootstrap daemon and P2P

This commit is contained in:
xiphon 2020-11-02 15:44:36 +00:00
parent bf65b07718
commit 5569a8e426

View File

@ -1123,6 +1123,11 @@ namespace cryptonote
{
RPC_TRACKER(send_raw_tx);
{
bool ok;
use_bootstrap_daemon_if_necessary<COMMAND_RPC_SEND_RAW_TX>(invoke_http_mode::JON, "/sendrawtransaction", req, res, ok);
}
const bool restricted = m_restricted && ctx;
bool skip_validation = false;
@ -1138,6 +1143,10 @@ namespace cryptonote
CHECK_CORE_READY();
}
}
else
{
CHECK_CORE_READY();
}
CHECK_PAYMENT_MIN1(req, res, COST_PER_TX_RELAY, false);