diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-11-04 20:44:49 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-11-04 20:44:49 +0200 |
commit | 0c7086bf7f93f65915b87b1897b9d291303c339f (patch) | |
tree | c5bbcf9ee66f08084c98d662a49b3ff6db70aece /src/rpc/rpc_handler.h | |
parent | Merge pull request #4686 (diff) | |
parent | Update ZMQ fee estimate and add ZMQ output distribution (diff) | |
download | monero-0c7086bf7f93f65915b87b1897b9d291303c339f.tar.xz |
Merge pull request #4687
6097472a Update ZMQ fee estimate and add ZMQ output distribution (Lee Clagett)
Diffstat (limited to 'src/rpc/rpc_handler.h')
-rw-r--r-- | src/rpc/rpc_handler.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/rpc/rpc_handler.h b/src/rpc/rpc_handler.h index 64bade5a8..3cccef78a 100644 --- a/src/rpc/rpc_handler.h +++ b/src/rpc/rpc_handler.h @@ -28,24 +28,35 @@ #pragma once +#include <boost/optional/optional.hpp> +#include <cstdint> #include <string> +#include <vector> namespace cryptonote { +class core; namespace rpc { +struct output_distribution_data +{ + std::vector<std::uint64_t> distribution; + std::uint64_t start_height; + std::uint64_t base; +}; class RpcHandler { public: + RpcHandler() { } + virtual ~RpcHandler() { } virtual std::string handle(const std::string& request) = 0; - RpcHandler() { } - - virtual ~RpcHandler() { } + static boost::optional<output_distribution_data> + get_output_distribution(core& src, std::uint64_t amount, std::uint64_t from_height, std::uint64_t to_height, bool cumulative); }; |