You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: doc/multiprocess.md
+38-1
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Specific next steps after [#10102](https://github.com/bitcoin/bitcoin/pull/10102
15
15
16
16
## Debugging
17
17
18
-
After [#10102](https://github.com/bitcoin/bitcoin/pull/10102), the`-debug=ipc` command line option can be used to see requests and responses between processes.
18
+
The`-debug=ipc` command line option can be used to see requests and responses between processes.
The configure script will pick up settings and library locations from the depends directory, so there is no need to pass `--enable-multiprocess` as a separate flag when using the depends system (it's controlled by the `MULTIPROCESS=1` option).
34
34
35
35
Alternately, you can install [Cap'n Proto](https://capnproto.org/) and [libmultiprocess](https://github.com/chaincodelabs/libmultiprocess) packages on your system, and just run `./configure --enable-multiprocess` without using the depends system. The configure script will be able to locate the installed packages via [pkg-config](https://www.freedesktop.org/wiki/Software/pkg-config/). See [Installation](https://github.com/chaincodelabs/libmultiprocess#installation) section of the libmultiprocess readme for install steps. See [build-unix.md](build-unix.md) and [build-osx.md](build-osx.md) for information about installing dependencies in general.
36
+
37
+
## IPC implementation details
38
+
39
+
Cross process Node, Wallet, and Chain interfaces are defined in
40
+
[`src/interfaces/`](../src/interfaces/). These are C++ classes which follow
41
+
[conventions](developer-notes.md#internal-interface-guidelines), like passing
42
+
serializable arguments so they can be called from different processes, and
43
+
making methods pure virtual so they can have proxy implementations that forward
44
+
calls between processes.
45
+
46
+
When Wallet, Node, and Chain code is running in the same process, calling any
47
+
interface method invokes the implementation directly. When code is running in
48
+
different processes, calling an interface method invokes a proxy interface
49
+
implementation that communicates with a remote process and invokes the real
Copy file name to clipboardexpand all lines: src/interfaces/README.md
+4-2
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,8 @@ The following interfaces are defined here:
12
12
13
13
*[`Handler`](handler.h) — returned by `handleEvent` methods on interfaces above and used to manage lifetimes of event handlers.
14
14
15
-
*[`Init`](init.h) — used by multiprocess code to access interfaces above on startup. Added in [#10102](https://github.com/bitcoin/bitcoin/pull/10102).
15
+
*[`Init`](init.h) — used by multiprocess code to access interfaces above on startup. Added in [#19160](https://github.com/bitcoin/bitcoin/pull/19160).
16
16
17
-
The interfaces above define boundaries between major components of bitcoin code (node, wallet, and gui), making it possible for them to run in different processes, and be tested, developed, and understood independently. These interfaces are not currently designed to be stable or to be used externally.
17
+
*[`Ipc`](ipc.h) — used by multiprocess code to access `Init` interface across processes. Added in [#19160](https://github.com/bitcoin/bitcoin/pull/19160).
18
+
19
+
The interfaces above define boundaries between major components of bitcoin code (node, wallet, and gui), making it possible for them to run in [different processes](../../doc/multiprocess.md), and be tested, developed, and understood independently. These interfaces are not currently designed to be stable or to be used externally.
0 commit comments