mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
revert sanity check
This commit is contained in:
parent
859e43810b
commit
2baefe5e7e
1 changed files with 6 additions and 4 deletions
|
@ -3633,7 +3633,7 @@ bool wallet2::get_rct_distribution(uint64_t &start_height, std::vector<uint64_t>
|
||||||
cryptonote::COMMAND_RPC_GET_OUTPUT_DISTRIBUTION::response res = AUTO_VAL_INIT(res);
|
cryptonote::COMMAND_RPC_GET_OUTPUT_DISTRIBUTION::response res = AUTO_VAL_INIT(res);
|
||||||
req.amounts.push_back(0);
|
req.amounts.push_back(0);
|
||||||
req.from_height = 0;
|
req.from_height = 0;
|
||||||
req.cumulative = true;
|
req.cumulative = false;
|
||||||
req.binary = true;
|
req.binary = true;
|
||||||
req.compress = true;
|
req.compress = true;
|
||||||
|
|
||||||
|
@ -3661,6 +3661,8 @@ bool wallet2::get_rct_distribution(uint64_t &start_height, std::vector<uint64_t>
|
||||||
MWARNING("Failed to request output distribution: results are not for amount 0");
|
MWARNING("Failed to request output distribution: results are not for amount 0");
|
||||||
return false;
|
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;
|
start_height = res.distributions[0].data.start_height;
|
||||||
distribution = std::move(res.distributions[0].data.distribution);
|
distribution = std::move(res.distributions[0].data.distribution);
|
||||||
return true;
|
return true;
|
||||||
|
@ -6581,7 +6583,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 = false;
|
req.do_sanity_checks = true;
|
||||||
COMMAND_RPC_SEND_RAW_TX::response daemon_send_resp;
|
COMMAND_RPC_SEND_RAW_TX::response daemon_send_resp;
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -8176,8 +8178,8 @@ void wallet2::get_outs(std::vector<std::vector<tools::wallet2::get_outs_entry>>
|
||||||
// check we're clear enough of rct start, to avoid corner cases below
|
// check we're clear enough of rct start, to avoid corner cases below
|
||||||
THROW_WALLET_EXCEPTION_IF(rct_offsets.size() <= CRYPTONOTE_DEFAULT_TX_SPENDABLE_AGE,
|
THROW_WALLET_EXCEPTION_IF(rct_offsets.size() <= CRYPTONOTE_DEFAULT_TX_SPENDABLE_AGE,
|
||||||
error::get_output_distribution, "Not enough rct outputs");
|
error::get_output_distribution, "Not enough rct outputs");
|
||||||
THROW_WALLET_EXCEPTION_IF(rct_offsets.back() <= max_rct_index,
|
//THROW_WALLET_EXCEPTION_IF(rct_offsets.back() <= max_rct_index,
|
||||||
error::get_output_distribution, "Daemon reports suspicious number of rct outputs");
|
//error::get_output_distribution, "Daemon reports suspicious number of rct outputs");
|
||||||
}
|
}
|
||||||
|
|
||||||
// get histogram for the amounts we need
|
// get histogram for the amounts we need
|
||||||
|
|
Loading…
Reference in a new issue