- Move ffi::Block from chronik-lib to chronik-bridge. This allows us to use this type in other crates, e.g. chronik-indexer.
- Add ffi definitions for CBlockIndex and CBlock so we can use them in Rust.
- Expose BridgeBlock through ffi so we can use it in Rust, renamed to bridge_block.
- Change handle_block_connected and handle_block_disconnected to take &CBlock and &CBlockIndex.
Details
Details
- Reviewers
Fabien - Group Reviewers
Restricted Project - Commits
- rABC88e5352e2b63: [Chronik] Move ffi::Block into chronik-bridge, use CBlockIndex and CBlock
ninja check-crates && ninja && ./test/functional/test_runner chronik_block
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
[Chronik] Add ChronikBridge::lookup_block_index
This allows us to get a CBlockIndex from a hash.