mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-07 15:20:31 +00:00
82e2e6fb10
also change the defailt/fallback bootstrap file for testnet to be a list of RCs (albeit of size 1) rather than just an RC dict.
29 lines
465 B
C++
29 lines
465 B
C++
#pragma once
|
|
|
|
#include "router_contact.hpp"
|
|
#include <set>
|
|
#include <unordered_map>
|
|
#include "llarp/util/fs.hpp"
|
|
|
|
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
|