mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-19 09:25:28 +00:00
f574cd798f
- includes are now sorted in consistent, logical order; first step in an attempt to fix the tomfoolery (no relation to Tom) brought in by include-what-you-use - shuffled around some cmake linking to simplify dependency graph - superfluous files removed
31 lines
467 B
C++
31 lines
467 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<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
|