Files
rippled/include/xrpl/peerfinder/detail/SourceStrings.h
2026-08-04 13:46:55 +00:00

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