2023-10-24 13:18:03 +00:00
|
|
|
#include <llarp/bootstrap.hpp>
|
|
|
|
|
2023-10-19 21:59:57 +00:00
|
|
|
#include <initializer_list>
|
|
|
|
|
|
|
|
namespace llarp
|
|
|
|
{
|
|
|
|
using namespace std::literals;
|
|
|
|
|
|
|
|
std::unordered_map<std::string, BootstrapList>
|
|
|
|
load_bootstrap_fallbacks()
|
|
|
|
{
|
|
|
|
std::unordered_map<std::string, BootstrapList> fallbacks;
|
2023-11-02 12:30:38 +00:00
|
|
|
|
|
|
|
for (const auto& [network, bootstrap] :
|
|
|
|
std::initializer_list<std::pair<std::string, std::string_view>>{
|
|
|
|
//
|
|
|
|
})
|
2023-10-19 21:59:57 +00:00
|
|
|
{
|
2023-11-02 12:30:38 +00:00
|
|
|
if (network != RouterContact::ACTIVE_NETID)
|
|
|
|
continue;
|
|
|
|
|
2023-10-19 21:59:57 +00:00
|
|
|
auto& bsl = fallbacks[network];
|
2023-11-02 12:30:38 +00:00
|
|
|
bsl.bt_decode(bootstrap);
|
2023-10-19 21:59:57 +00:00
|
|
|
}
|
2023-11-02 12:30:38 +00:00
|
|
|
|
2023-10-19 21:59:57 +00:00
|
|
|
return fallbacks;
|
|
|
|
}
|
|
|
|
} // namespace llarp
|