diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-12 20:20:20 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-12 20:22:09 +0000 |
commit | ccb996afc6cf650f55ef406eb378e8960a6a4a2d (patch) | |
tree | 2c25c8b8498e46157eef2a0ceacf15c31ae2c6cb /src/wallet/wallet2.cpp | |
parent | Merge pull request #5386 (diff) | |
download | monero-ccb996afc6cf650f55ef406eb378e8960a6a4a2d.tar.xz |
rpc: new sanity check on relayed transactions
This will weed out some transactions with silly rings
Diffstat (limited to '')
-rw-r--r-- | src/wallet/wallet2.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index dfcc61426..b74742c6a 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -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); |