mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-22 06:40:53 +00:00
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
26 lines
470 B
C++
26 lines
470 B
C++
#pragma once
|
|
|
|
#include <xrpl/peerfinder/detail/Source.h>
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace xrpl::peer_finder {
|
|
|
|
/**
|
|
* Provides addresses from a static set of strings.
|
|
*/
|
|
class SourceStrings : public Source
|
|
{
|
|
public:
|
|
explicit SourceStrings() = default;
|
|
|
|
using Strings = std::vector<std::string>;
|
|
|
|
static std::shared_ptr<Source>
|
|
make(std::string const& name, Strings const& strings);
|
|
};
|
|
|
|
} // namespace xrpl::peer_finder
|