mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
|