diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-11-20 12:34:25 +0900 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-11-20 12:34:25 +0900 |
commit | 6c223fa96fb46ecb815b86cc3065aeed42205b76 (patch) | |
tree | a0d963aa0411b9d0f7c2738d81b90d06b09e49d4 /src/rpc/daemon_handler.cpp | |
parent | Merge pull request #4820 (diff) | |
parent | tests: add unit tests for get_output_distribution (diff) | |
download | monero-6c223fa96fb46ecb815b86cc3065aeed42205b76.tar.xz |
Merge pull request #4812
31d80027 tests: add unit tests for get_output_distribution (moneromooo-monero)
0936dae8 blockchain: remove "0 is height" shortcut from get_output_distribution (moneromooo-monero)
872c7eb2 Revert "blockchain: simplify output distribution code" (moneromooo-monero)
Diffstat (limited to 'src/rpc/daemon_handler.cpp')
-rw-r--r-- | src/rpc/daemon_handler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/daemon_handler.cpp b/src/rpc/daemon_handler.cpp index 8822bd378..64a5cc858 100644 --- a/src/rpc/daemon_handler.cpp +++ b/src/rpc/daemon_handler.cpp @@ -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(); |