Page MenuHomePhabricator

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

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

Details

Reviewers
Fabien
PiRK
Group Reviewers
Restricted Project
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.Sat, Jun 29, 11:43
PiRK added a subscriber: PiRK.
PiRK added inline comments.
chronik/chronik-cpp/chronik.cpp
41–70
This revision now requires changes to proceed.Sat, Jun 29, 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