aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/core_rpc_server.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-22 17:51:58 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-04-22 22:36:01 +0100
commitd003f07c59933725b7e35ca758bbfdb2b11b4ea3 (patch)
treeb41e234d637ef0e08b8c3d3c0afc65ef8a45fa82 /src/rpc/core_rpc_server.cpp
parentwallet2: add missing parameters to get_output_histogram (diff)
downloadmonero-d003f07c59933725b7e35ca758bbfdb2b11b4ea3.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/core_rpc_server.cpp')
-rw-r--r--src/rpc/core_rpc_server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp
index 79792e387..827d97da2 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)
{