Page MenuHomePhabricator

[Chronik] Add `ParseChronikParams` and use it in chronik::Start
ClosedPublic

Authored by tobias_ruck on Jun 28 2024, 19:13.

Details

Summary

This separates this code into its own function, something we eventually could test also.

Test Plan

ninja check-functional

Event Timeline

PiRK requested changes to this revision.Jun 29 2024, 11:43
PiRK added a subscriber: PiRK.
PiRK added inline comments.
chronik/chronik-cpp/chronik.cpp
41–70 ↗(On Diff #48414)
This revision now requires changes to proceed.Jun 29 2024, 11:43

This looks like a good first step to remove most gArgs access (eventually we want the ArgsManager to not be a global).

A next step would be to make chronik not depend on common/args.h (ArgsManager) at all, like we recently did for ChainstateManager, BlockManager (see D16007 for instance) ...

chronik/chronik-cpp/chronik.cpp
77 ↗(On Diff #48414)
This revision is now accepted and ready to land.Jul 3 2024, 13:07