Bitcoin Core 22.99.0
P2P Digital Currency
echo.cpp
Go to the documentation of this file.
1// Copyright (c) 2021 The Bitcoin Core developers
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5#include <interfaces/echo.h>
6
7#include <memory>
8
9namespace interfaces {
10namespace {
11class EchoImpl : public Echo
12{
13public:
14 std::string echo(const std::string& echo) override { return echo; }
15};
16} // namespace
17std::unique_ptr<Echo> MakeEcho() { return std::make_unique<EchoImpl>(); }
18} // namespace interfaces
static RPCHelpMan echo(const std::string &name)
Definition: misc.cpp:649
std::unique_ptr< Echo > MakeEcho()
Return implementation of Echo interface.
Definition: echo.cpp:17