mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +00:00
fa4471f566
- 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)
34 lines
501 B
C++
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
|