lokinet/llarp/bootstrap.hpp
dr7ana fa4471f566 {Remote,Local}RC's
- RemoteRC supplants most of the functionality throughout the code of RouterContact
- Next step will be to sort out CI issues, then see if we can get rid of either LocalRC (and therefore RouterContact entirely)
2023-11-02 05:30:49 -07:00

34 lines
501 B
C++

#pragma once
#include "router_contact.hpp"
#include <llarp/util/fs.hpp>
#include <set>
#include <unordered_map>
namespace llarp
{
struct BootstrapList final : public std::set<RemoteRC>
{
bool
bt_decode(std::string_view buf);
std::string_view
bt_encode() const;
void
read_from_file(const fs::path& fpath);
void
clear_list()
{
clear();
}
};
std::unordered_map<std::string, BootstrapList>
load_bootstrap_fallbacks();
} // namespace llarp