mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
28 lines
664 B
C++
28 lines
664 B
C++
#ifndef _HP_UNL_
|
|
#define _HP_UNL_
|
|
|
|
#include "pchheader.hpp"
|
|
#include "p2p/p2p.hpp"
|
|
#include "usr/usr.hpp"
|
|
|
|
/**
|
|
* Manages the UNL public keys of this node.
|
|
*/
|
|
namespace unl
|
|
{
|
|
|
|
size_t count();
|
|
const std::set<std::string> get();
|
|
const std::string get_json();
|
|
bool exists(const std::string &bin_pubkey);
|
|
int init();
|
|
void update_unl_changes_from_patch();
|
|
void update_roundtime_stats(const std::list<p2p::proposal> &proposals);
|
|
uint32_t get_majority_roundtime();
|
|
bool update_unl_list(const std::set<std::string> &new_list);
|
|
const std::string prepare_json_list(const std::set<std::string> &new_list);
|
|
|
|
} // namespace unl
|
|
|
|
#endif
|