- 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
- Branch
- chronik-cblockindex
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 22347 Build 44320: Build Diff build-chronik Build 44319: arc lint + arc unit
Event Timeline
Comment Actions
[Chronik] Add ChronikBridge::lookup_block_index
This allows us to get a CBlockIndex from a hash.