diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-03-22 17:51:58 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-04-23 10:54:28 +0100 |
commit | ffeeefde609822bca8a05ac6919ca0de2fc3fcc0 (patch) | |
tree | a12d90343a88a77de9292b2b4005b913bf41d2d1 /src/rpc | |
parent | wallet2: add missing parameters to get_output_histogram (diff) | |
download | monero-ffeeefde609822bca8a05ac6919ca0de2fc3fcc0.tar.xz |
speedup get_output_histogram for all amounts when min_count > 0
This skips the vast majority of "dust" output amounts with just
one instance on the chain. Clocks in at 0.15% of the original
time on testnet.
Diffstat (limited to 'src/rpc')
-rw-r--r-- | src/rpc/core_rpc_server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index aa5728fc3..3645c494e 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -1728,7 +1728,7 @@ namespace cryptonote std::map<uint64_t, std::tuple<uint64_t, uint64_t, uint64_t>> histogram; try { - histogram = m_core.get_blockchain_storage().get_output_histogram(req.amounts, req.unlocked, req.recent_cutoff); + histogram = m_core.get_blockchain_storage().get_output_histogram(req.amounts, req.unlocked, req.recent_cutoff, req.min_count); } catch (const std::exception &e) { |