Merge pull request #5434

ccb996af rpc: new sanity check on relayed transactions (moneromooo-monero)
This commit is contained in:
Riccardo Spagni
2019-04-16 22:41:40 +02:00
7 changed files with 154 additions and 1 deletions
+1
View File
@@ -6000,6 +6000,7 @@ void wallet2::commit_tx(pending_tx& ptx)
COMMAND_RPC_SEND_RAW_TX::request req;
req.tx_as_hex = epee::string_tools::buff_to_hex_nodelimer(tx_to_blob(ptx.tx));
req.do_not_relay = false;
req.do_sanity_checks = true;
COMMAND_RPC_SEND_RAW_TX::response daemon_send_resp;
m_daemon_rpc_mutex.lock();
bool r = epee::net_utils::invoke_http_json("/sendrawtransaction", req, daemon_send_resp, m_http_client, rpc_timeout);