diff --git a/src/ipc/capnp/init-types.h b/src/ipc/capnp/init-types.h index c3ddca27c0471..d44cd24908071 100644 --- a/src/ipc/capnp/init-types.h +++ b/src/ipc/capnp/init-types.h @@ -5,6 +5,7 @@ #ifndef BITCOIN_IPC_CAPNP_INIT_TYPES_H #define BITCOIN_IPC_CAPNP_INIT_TYPES_H +#include #include #include diff --git a/src/ipc/capnp/init.capnp b/src/ipc/capnp/init.capnp index 1001ee5336871..81469921e9526 100644 --- a/src/ipc/capnp/init.capnp +++ b/src/ipc/capnp/init.capnp @@ -8,11 +8,13 @@ using Cxx = import "/capnp/c++.capnp"; $Cxx.namespace("ipc::capnp::messages"); using Proxy = import "/mp/proxy.capnp"; +$Proxy.include("interfaces/chain.h"); $Proxy.include("interfaces/echo.h"); $Proxy.include("interfaces/init.h"); $Proxy.include("interfaces/mining.h"); $Proxy.includeTypes("ipc/capnp/init-types.h"); +using Chain = import "chain.capnp"; using Echo = import "echo.capnp"; using Mining = import "mining.capnp"; @@ -20,4 +22,5 @@ interface Init $Proxy.wrap("interfaces::Init") { construct @0 (threadMap: Proxy.ThreadMap) -> (threadMap :Proxy.ThreadMap); makeEcho @1 (context :Proxy.Context) -> (result :Echo.Echo); makeMining @2 (context :Proxy.Context) -> (result :Mining.Mining); + makeChain @3 (context :Proxy.Context) -> (result :Chain.Chain); }