Files
hpcore/src/unl.hpp
Savinda Senevirathne bed8205ca8 Config patch change detection. (#211)
* Applying patch file changes to hpcore runtime after patch file change detection.
* Removing unl sync functionality.
* Removing subjecting unl changeset to consensus.
2021-01-06 20:02:14 +05:30

25 lines
469 B
C++

#ifndef _HP_UNL_
#define _HP_UNL_
#include "pchheader.hpp"
#include "p2p/p2p.hpp"
/**
* Manages the UNL public keys of this node.
*/
namespace unl
{
size_t count();
std::set<std::string> get();
std::string get_json();
bool exists(const std::string &bin_pubkey);
int init();
void update_json_list();
std::string calculate_hash(const std::set<std::string> &new_list);
void update_unl_changes_from_patch();
} // namespace unl
#endif