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
Lint
Lint Not Applicable
Unit
Tests Not Applicable