lokinet/llarp/bootstrap.hpp

31 lines
467 B
C++
Raw Normal View History

#pragma once
#include "router_contact.hpp"
#include <llarp/util/fs.hpp>
#include <set>
#include <unordered_map>
2023-10-19 21:59:57 +00:00
namespace llarp
{
struct BootstrapList final : public std::set<RouterContact>
{
bool
BDecode(llarp_buffer_t* buf);
bool
BEncode(llarp_buffer_t* buf) const;
void
AddFromFile(fs::path fpath);
void
Clear();
};
std::unordered_map<std::string, BootstrapList>
load_bootstrap_fallbacks();
} // namespace llarp