diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2020-11-24 13:59:33 -0500 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2021-04-23 03:02:50 -0500 |
commit | 84934bf70e11fe4cda1cfda60113a54895d4fdd5 (patch) | |
tree | a76e8bd27d3e32a9f433d6f24857d6b96e499efc /src/interfaces/init.cpp | |
parent | 7d76cf667eff512043a28d4407cc89f58796c42b (diff) | |
download | bitcoin-84934bf70e11fe4cda1cfda60113a54895d4fdd5.tar.xz |
multiprocess: Add echoipc RPC method and test
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.
Diffstat (limited to 'src/interfaces/init.cpp')
-rw-r--r-- | src/interfaces/init.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/interfaces/init.cpp b/src/interfaces/init.cpp index 1eeea9b5cb..a3c949e616 100644 --- a/src/interfaces/init.cpp +++ b/src/interfaces/init.cpp @@ -3,6 +3,7 @@ // 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> @@ -11,5 +12,6 @@ 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 |