mirror of
https://github.com/monero-project/monero.git
synced 2025-08-17 12:40:20 -04:00
tests: add unit tests for get_output_distribution
This commit is contained in:
parent
0936dae8a4
commit
31d80027b5
9 changed files with 331 additions and 92 deletions
|
@ -751,7 +751,7 @@ namespace rpc
|
|||
const uint64_t req_to_height = req.to_height ? req.to_height : (m_core.get_current_blockchain_height() - 1);
|
||||
for (std::uint64_t amount : req.amounts)
|
||||
{
|
||||
auto data = get_output_distribution(m_core, amount, req.from_height, req_to_height, req.cumulative);
|
||||
auto data = rpc::RpcHandler::get_output_distribution([this](uint64_t amount, uint64_t from, uint64_t to, uint64_t &start_height, std::vector<uint64_t> &distribution, uint64_t &base) { return m_core.get_output_distribution(amount, from, to, start_height, distribution, base); }, amount, req.from_height, req_to_height, req.cumulative);
|
||||
if (!data)
|
||||
{
|
||||
res.distributions.clear();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue