lokinet/llarp/bootstrap_fallbacks.cpp

29 lines
604 B
C++
Raw Normal View History

#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;
for (const auto& [network, bootstrap] :
std::initializer_list<std::pair<std::string, std::string_view>>{
//
})
2023-10-19 21:59:57 +00:00
{
if (network != RouterContact::ACTIVE_NETID)
continue;
2023-10-19 21:59:57 +00:00
auto& bsl = fallbacks[network];
bsl.bt_decode(bootstrap);
2023-10-19 21:59:57 +00:00
}
2023-10-19 21:59:57 +00:00
return fallbacks;
}
} // namespace llarp