mirror of
https://github.com/monero-project/monero.git
synced 2025-12-16 17:34:02 -05:00
Update ZMQ fee estimate and add ZMQ output distribution
This commit is contained in:
parent
2287fb9fb4
commit
6097472a19
13 changed files with 260 additions and 88 deletions
|
|
@ -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);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue