diff options
author | xiphon <xiphon@protonmail.com> | 2020-11-02 15:44:36 +0000 |
---|---|---|
committer | xiphon <xiphon@protonmail.com> | 2020-11-15 03:13:07 +0000 |
commit | 5569a8e426b9d5ac36c490e1d509707747fa7622 (patch) | |
tree | a1287f7a9e996df5319be9a084224e7522380544 /src/rpc/core_rpc_server.cpp | |
parent | Merge pull request #6867 (diff) | |
download | monero-5569a8e426b9d5ac36c490e1d509707747fa7622.tar.xz |
rpc: on_send_raw_tx (bootstrap) - send to bootstrap daemon and P2P
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rw-r--r-- | src/rpc/core_rpc_server.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index a50c70418..4d88c353c 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -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); |