mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-27 03:33:27 -03:00
84934bf70e
Add simple interfaces::Echo IPC interface with one method that just takes and returns a string, to test multiprocess framework and provide an example of how it can be used to spawn and call between processes.
17 lines
671 B
C++
17 lines
671 B
C++
// Copyright (c) 2021 The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#include <interfaces/chain.h>
|
|
#include <interfaces/echo.h>
|
|
#include <interfaces/init.h>
|
|
#include <interfaces/node.h>
|
|
#include <interfaces/wallet.h>
|
|
|
|
namespace interfaces {
|
|
std::unique_ptr<Node> Init::makeNode() { return {}; }
|
|
std::unique_ptr<Chain> Init::makeChain() { return {}; }
|
|
std::unique_ptr<WalletClient> Init::makeWalletClient(Chain& chain) { return {}; }
|
|
std::unique_ptr<Echo> Init::makeEcho() { return {}; }
|
|
Ipc* Init::ipc() { return nullptr; }
|
|
} // namespace interfaces
|