mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
502 B
C++
18 lines
502 B
C++
#pragma once
|
|
|
|
#include "common.hpp"
|
|
|
|
namespace llarp::RouterIDFetch
|
|
{
|
|
inline constexpr auto INVALID_REQUEST = "Invalid relay ID requested to relay response from."sv;
|
|
|
|
inline static std::string
|
|
serialize(const RouterID& source)
|
|
{
|
|
// serialize_response is a bit weird here, and perhaps could have a sister function
|
|
// with the same purpose but as a request, but...it works.
|
|
return messages::serialize_response({{"source", source.ToView()}});
|
|
}
|
|
|
|
} // namespace llarp::RouterIDFetch
|