mirror of
https://github.com/monero-project/monero.git
synced 2024-12-27 07:29:25 -05:00
Merge pull request #6960
5569a8e
rpc: on_send_raw_tx (bootstrap) - send to bootstrap daemon and P2P (xiphon)
This commit is contained in:
commit
9945ca7a62
@ -1131,6 +1131,11 @@ namespace cryptonote
|
|||||||
{
|
{
|
||||||
RPC_TRACKER(send_raw_tx);
|
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;
|
const bool restricted = m_restricted && ctx;
|
||||||
|
|
||||||
bool skip_validation = false;
|
bool skip_validation = false;
|
||||||
@ -1146,6 +1151,10 @@ namespace cryptonote
|
|||||||
CHECK_CORE_READY();
|
CHECK_CORE_READY();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
CHECK_CORE_READY();
|
||||||
|
}
|
||||||
|
|
||||||
CHECK_PAYMENT_MIN1(req, res, COST_PER_TX_RELAY, false);
|
CHECK_PAYMENT_MIN1(req, res, COST_PER_TX_RELAY, false);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user