---
title: llarp/bootstrap.hpp

---

# llarp/bootstrap.hpp



## Namespaces

| Name           |
| -------------- |
| **[llarp](Namespaces/namespacellarp.md)** <br>[crypto.hpp] |

## Classes

|                | Name           |
| -------------- | -------------- |
| struct | **[llarp::BootstrapList](Classes/structllarp_1_1BootstrapList.md)**  |




## Source code

```cpp
#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
```


-------------------------------

Updated on 2025-03-02 at 05:10:06 +0000
