Skip to content

Ipc extractor - #3

Closed
nullfail wants to merge 12 commits into
masterfrom
ipc-extractor
Closed

nullfail wants to merge 12 commits into
masterfrom
ipc-extractor

Conversation

@nullfail

Copy link
Copy Markdown
Owner

No description provided.

@nullfail
nullfail force-pushed the ipc-extractor branch 7 times, most recently from 3b27bd0 to 8bd94fb Compare March 17, 2026 18:23
@nullfail
nullfail force-pushed the ipc-extractor branch 6 times, most recently from ba08e80 to ba32233 Compare March 27, 2026 00:39
@nullfail
nullfail force-pushed the ipc-extractor branch 9 times, most recently from 1e6ea6a to 1e1546f Compare April 23, 2026 13:53
@nullfail
nullfail force-pushed the ipc-extractor branch 6 times, most recently from 20279f5 to 9b727c8 Compare May 11, 2026 18:13
This set the foundation for start implementing peer-observer#370.
- Add protobuf event schema BlockTip
- Extend main peer_observer_event with IPC ones
- Expose generated IPC protobuf bindings
- Extend runtime error handling for NATS publish and system-time errors
@nullfail
nullfail force-pushed the ipc-extractor branch 3 times, most recently from b9c1410 to 047b300 Compare May 19, 2026 19:01
nullfail added 10 commits May 20, 2026 01:17
Mirror capnp files at [Core v31.0](https://github.com/bitcoin/bitcoin/tree/v31.0),
these files will be located at `extractors/ipc/capnp`
The `--ipc-socket-path` argument was previously unused. This change implements the full IPC
connection workflow by instantiating the Mining interface and performing a `getTip` query
to have a simple extraction process.

Key changes:

- Add `build.rs` to generate Rust bindings for the multiprocess schemas in `capnp/`
- Integrate bindings using `capnp::generated_code!` macro
- Implemented error handling for Capnp-specific RPC failures
- Updated `main.rs` to a single-threaded runtime since `capnp_rpc::RpcSystem` is `!Send`
- Create `ipc.rs` which encapsulates IPC communication logic
nix-shell CI tests will be skipped because of a `bitcoin-node` version mismatch:
v31.0 (resolved in nix-shell) vs v30.2 (latest version in `corepc`).

Once rust-bitcoin/corepc#586 lands the IN_NIX_SHELL guard should be dropped.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant