mirror of
https://github.com/monero-project/monero.git
synced 2026-07-31 16:10:38 -07:00
rpc: new sanity check on relayed transactions
This will weed out some transactions with silly rings
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user