aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/rpc_handler.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-05-07 17:30:27 +0200
committerRiccardo Spagni <ric@spagni.net>2019-05-07 17:30:27 +0200
commit9d91301faa27e5ed94dab99c5a157baa4ffb47da (patch)
treec18c55a04b2d91755a2d3002b97a1196c6d46b16 /src/rpc/rpc_handler.h
parentMerge pull request #5481 (diff)
parentrpc: improve get_output_distribution (diff)
downloadmonero-9d91301faa27e5ed94dab99c5a157baa4ffb47da.tar.xz
Merge pull request #5496
0eb0d6b8 rpc: improve get_output_distribution (moneromooo-monero)
Diffstat (limited to 'src/rpc/rpc_handler.h')
-rw-r--r--src/rpc/rpc_handler.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rpc/rpc_handler.h b/src/rpc/rpc_handler.h
index 2439eaa58..b81983d28 100644
--- a/src/rpc/rpc_handler.h
+++ b/src/rpc/rpc_handler.h
@@ -32,6 +32,7 @@
#include <cstdint>
#include <string>
#include <vector>
+#include "crypto/hash.h"
namespace cryptonote
{
@@ -56,7 +57,7 @@ class RpcHandler
virtual std::string handle(const std::string& request) = 0;
static boost::optional<output_distribution_data>
- get_output_distribution(const std::function<bool(uint64_t, uint64_t, uint64_t, uint64_t&, std::vector<uint64_t>&, uint64_t&)> &f, uint64_t amount, uint64_t from_height, uint64_t to_height, bool cumulative);
+ get_output_distribution(const std::function<bool(uint64_t, uint64_t, uint64_t, uint64_t&, std::vector<uint64_t>&, uint64_t&)> &f, uint64_t amount, uint64_t from_height, uint64_t to_height, const std::function<crypto::hash(uint64_t)> &get_hash, bool cumulative, uint64_t blockchain_height);
};