hotfix "no ring" error
This commit is contained in:
parent
58aa5ac491
commit
7683daa61f
|
@ -3324,7 +3324,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 = false;
|
req.cumulative = true;
|
||||||
req.binary = true;
|
req.binary = true;
|
||||||
req.compress = true;
|
req.compress = true;
|
||||||
m_daemon_rpc_mutex.lock();
|
m_daemon_rpc_mutex.lock();
|
||||||
|
@ -3355,8 +3355,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)
|
// 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];
|
// 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;
|
||||||
|
|
Loading…
Reference in New Issue