HomePhabricator

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

Description

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

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

Reviewers: Fabien, #bitcoin_abc

Reviewed By: Fabien, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D13987

Details

Provenance
tobias_ruckAuthored on Jun 5 2023, 10:48
tobias_ruckPushed on Jun 15 2023, 20:12
Reviewer
Restricted Project
Differential Revision
D13987: [Chronik] Add `Node`, a wrapper struct to access the node from Chronik
Parents
rABC09e6e538467b: [ecash-herald] Remove debug log in parseTests.js
Branches
Unknown
Tags
Unknown