From 6179aa7d3564101cfb57dc137241fc6d862164ae Mon Sep 17 00:00:00 2001 From: wowario Date: Thu, 9 May 2019 22:12:41 +0300 Subject: [PATCH] sanity check: change to false #5434 --- src/rpc/core_rpc_server.cpp | 2 +- src/rpc/core_rpc_server_commands_defs.h | 2 +- src/wallet/wallet2.cpp | 2 +- utils/python-rpc/framework/daemon.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index 5777370fc..85cea5573 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -858,7 +858,7 @@ namespace cryptonote { res.status = "Failed"; res.reason = "Sanity check failed"; - res.sanity_check_failed = true; + res.sanity_check_failed = false; return true; } diff --git a/src/rpc/core_rpc_server_commands_defs.h b/src/rpc/core_rpc_server_commands_defs.h index cfe4bbf23..7eef9e651 100644 --- a/src/rpc/core_rpc_server_commands_defs.h +++ b/src/rpc/core_rpc_server_commands_defs.h @@ -590,7 +590,7 @@ namespace cryptonote BEGIN_KV_SERIALIZE_MAP() KV_SERIALIZE(tx_as_hex) KV_SERIALIZE_OPT(do_not_relay, false) - KV_SERIALIZE_OPT(do_sanity_checks, true) + KV_SERIALIZE_OPT(do_sanity_checks, false) END_KV_SERIALIZE_MAP() }; typedef epee::misc_utils::struct_init request; diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 841dfd37c..05fe69126 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -6088,7 +6088,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; + req.do_sanity_checks = false; COMMAND_RPC_SEND_RAW_TX::response daemon_send_resp; m_daemon_rpc_mutex.lock(); bool r = invoke_http_json("/sendrawtransaction", req, daemon_send_resp, rpc_timeout); diff --git a/utils/python-rpc/framework/daemon.py b/utils/python-rpc/framework/daemon.py index 04fc5b5cf..3a3a8eb78 100644 --- a/utils/python-rpc/framework/daemon.py +++ b/utils/python-rpc/framework/daemon.py @@ -50,7 +50,7 @@ class Daemon(object): } return self.rpc.send_json_rpc_request(getblocktemplate) - def send_raw_transaction(self, tx_as_hex, do_not_relay = False, do_sanity_checks = True): + def send_raw_transaction(self, tx_as_hex, do_not_relay = False, do_sanity_checks = False): send_raw_transaction = { 'tx_as_hex': tx_as_hex, 'do_not_relay': do_not_relay,