discv5::StaticEnrBootnodeSource¶
Bootstrap source backed by a fixed list of "enr:…" URI strings. More...
#include <discv5_bootnodes.hpp>
Inherits from discv5::IBootnodeSource
Public Functions¶
| Name | |
|---|---|
| StaticEnrBootnodeSource(std::vector< std::string > enr_uris, std::string name ="static-enr") Construct with a pre-built list of ENR URI strings. |
|
| virtual std::vector< std::string > | fetch() const override Return all bootstrap ENR URIs available from this source. |
| virtual std::string | name() const override Human-readable name of this source, for logging. |
Additional inherited members¶
Public Functions inherited from discv5::IBootnodeSource
| Name | |
|---|---|
| virtual | ~IBootnodeSource() =default |
Detailed Description¶
Bootstrap source backed by a fixed list of "enr:…" URI strings.
Suitable for Ethereum mainnet, Sepolia, and any chain that publishes ENR boot nodes (e.g. in go-ethereum's params/bootnodes.go).
Public Functions Documentation¶
function StaticEnrBootnodeSource¶
explicit StaticEnrBootnodeSource(
std::vector< std::string > enr_uris,
std::string name ="static-enr"
)
Construct with a pre-built list of ENR URI strings.
Parameters:
- enr_uris Vector of "enr:…" strings.
- name Human-readable label for logging.
function fetch¶
Return all bootstrap ENR URIs available from this source.
Return: Vector of URI strings. May be empty if no seeds are available.
Reimplements: discv5::IBootnodeSource::fetch
ENR URIs are preferred; the crawler will attempt to parse each one via EnrParser. Enode URIs are also accepted and will be converted to a minimal ValidatedPeer without an EnrRecord.
function name¶
Human-readable name of this source, for logging.
Reimplements: discv5::IBootnodeSource::name
Updated on 2026-04-13 at 23:22:46 -0700