rpc: new sanity check on relayed transactions

This will weed out some transactions with silly rings
This commit is contained in:
moneromooo-monero
2019-04-12 20:22:09 +00:00
parent 9c77dbf376
commit ccb996afc6
7 changed files with 154 additions and 1 deletions
+1
View File
@@ -5988,6 +5988,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);