From 2e8fae1b4c5c541d27c5327529f11d3024a5a50e Mon Sep 17 00:00:00 2001 From: wowario Date: Sat, 19 Sep 2020 14:07:13 +0300 Subject: [PATCH] disable sanity_checks --- src/wallet/wallet2.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 6693cc680..7f2d6ae4a 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -3577,7 +3577,7 @@ bool wallet2::get_rct_distribution(uint64_t &start_height, std::vector cryptonote::COMMAND_RPC_GET_OUTPUT_DISTRIBUTION::response res = AUTO_VAL_INIT(res); req.amounts.push_back(0); req.from_height = 0; - req.cumulative = false; + req.cumulative = true; req.binary = true; req.compress = true; @@ -3605,8 +3605,6 @@ bool wallet2::get_rct_distribution(uint64_t &start_height, std::vector MWARNING("Failed to request output distribution: results are not for amount 0"); return false; } - for (size_t i = 1; i < res.distributions[0].data.distribution.size(); ++i) - res.distributions[0].data.distribution[i] += res.distributions[0].data.distribution[i-1]; start_height = res.distributions[0].data.start_height; distribution = std::move(res.distributions[0].data.distribution); return true; @@ -6517,7 +6515,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; {