Page MenuHomePhabricator

[Chronik] Add `Node`, a wrapper struct to access the node from Chronik
ClosedPublic

Authored by tobias_ruck on Jun 5 2023, 10:49.

Details

Summary

In order to broadcast txs from Chronik, we need to be able to talk to the node via ChronikBridge.

For this, we add Node, which contains a UniquePtr to the bridge, and add it as an Extension layer to the HTTP router. This way we can access it from HTTP.

Also change Chronik to use Node, so we can re-use the same struct.

Test Plan

ninja check-crates

Diff Detail

Repository
rABC Bitcoin ABC
Branch
chronik-node-http
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 23901
Build 47412: Build Diffbuild-chronik
Build 47411: arc lint + arc unit