sanity check: change to false #5434

This commit is contained in:
wowario 2019-05-09 22:12:41 +03:00
parent 268e2a0c96
commit 6179aa7d35
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111
4 changed files with 4 additions and 4 deletions

View File

@ -858,7 +858,7 @@ namespace cryptonote
{ {
res.status = "Failed"; res.status = "Failed";
res.reason = "Sanity check failed"; res.reason = "Sanity check failed";
res.sanity_check_failed = true; res.sanity_check_failed = false;
return true; return true;
} }

View File

@ -590,7 +590,7 @@ namespace cryptonote
BEGIN_KV_SERIALIZE_MAP() BEGIN_KV_SERIALIZE_MAP()
KV_SERIALIZE(tx_as_hex) KV_SERIALIZE(tx_as_hex)
KV_SERIALIZE_OPT(do_not_relay, false) 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() END_KV_SERIALIZE_MAP()
}; };
typedef epee::misc_utils::struct_init<request_t> request; typedef epee::misc_utils::struct_init<request_t> request;

View File

@ -6088,7 +6088,7 @@ void wallet2::commit_tx(pending_tx& ptx)
COMMAND_RPC_SEND_RAW_TX::request req; COMMAND_RPC_SEND_RAW_TX::request req;
req.tx_as_hex = epee::string_tools::buff_to_hex_nodelimer(tx_to_blob(ptx.tx)); req.tx_as_hex = epee::string_tools::buff_to_hex_nodelimer(tx_to_blob(ptx.tx));
req.do_not_relay = false; req.do_not_relay = false;
req.do_sanity_checks = true; req.do_sanity_checks = false;
COMMAND_RPC_SEND_RAW_TX::response daemon_send_resp; COMMAND_RPC_SEND_RAW_TX::response daemon_send_resp;
m_daemon_rpc_mutex.lock(); m_daemon_rpc_mutex.lock();
bool r = invoke_http_json("/sendrawtransaction", req, daemon_send_resp, rpc_timeout); bool r = invoke_http_json("/sendrawtransaction", req, daemon_send_resp, rpc_timeout);

View File

@ -50,7 +50,7 @@ class Daemon(object):
} }
return self.rpc.send_json_rpc_request(getblocktemplate) 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 = { send_raw_transaction = {
'tx_as_hex': tx_as_hex, 'tx_as_hex': tx_as_hex,
'do_not_relay': do_not_relay, 'do_not_relay': do_not_relay,