HomePhabricator

[Chronik Add empty HTTP server, take two

Description

[Chronik Add empty HTTP server, take two

Summary:
This has already been added in D12673, which however broke the windows build, and thus has been reverted in D12782.

  1. Add chronik-http crate to run an HTTP server using axum within bitcoind. It currently has no routes, so every request will result in a 404.
  2. Use tokio runtime; outstanding HTTP requests and ports are automatically dropped when Chronik is dropped.
  3. Add abort_node ffi function to gracefully shut down the node with an error message.
  4. Add "chronik_" prefix as allowed prefix for tests.

Test Plan: ninja check-functional

Reviewers: Fabien, #bitcoin_abc

Reviewed By: Fabien, #bitcoin_abc

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

Details

Provenance
tobias_ruckAuthored on Dec 7 2022, 20:30
tobias_ruckPushed on Dec 8 2022, 10:34
Reviewer
Restricted Project
Differential Revision
D12804: [Chronik Add empty HTTP server, take two
Parents
rABCdf9880cbd61c: test: Print stderr when subprocess fails
Branches
Unknown
Tags
Unknown