diff options
author | luigi1111 <luigi1111w@gmail.com> | 2020-11-29 01:53:12 -0600 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2020-11-29 01:53:12 -0600 |
commit | 9945ca7a62833fe4319703023ba498b9f421a7aa (patch) | |
tree | 3df7c80a7cda9a24b5fae2225937fa0b7dde5134 /src/rpc | |
parent | Merge pull request #6949 (diff) | |
parent | rpc: on_send_raw_tx (bootstrap) - send to bootstrap daemon and P2P (diff) | |
download | monero-9945ca7a62833fe4319703023ba498b9f421a7aa.tar.xz |
Merge pull request #6960
5569a8e rpc: on_send_raw_tx (bootstrap) - send to bootstrap daemon and P2P (xiphon)
Diffstat (limited to 'src/rpc')
-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 91d1c523a..fc67e2dd1 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -1131,6 +1131,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; @@ -1146,6 +1151,10 @@ namespace cryptonote CHECK_CORE_READY(); } } + else + { + CHECK_CORE_READY(); + } CHECK_PAYMENT_MIN1(req, res, COST_PER_TX_RELAY, false); |