Update ZMQ fee estimate and add ZMQ output distribution
This commit is contained in:
+14
-3
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user