HomePhabricator

[alias-server] Chronik functions take chronik as a param to support future…

Description

[alias-server] Chronik functions take chronik as a param to support future mocking

Summary:
T3060

Depends on D13592

This diff refactors chronik calling functions to accept chronik as a param.

Will introduce a mock chronik object for unit tests of chronik functions.

Test Plan:
npm test
npm run mocks and mocks are generated

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
bytesofmanAuthored on Apr 6 2023, 13:24
bytesofmanPushed on Apr 6 2023, 15:47
Reviewer
Restricted Project
Differential Revision
D13599: [alias-server] Chronik functions take chronik as a param to support future mocking
Parents
rABC76a212ed891e: [alias-server] Handle startup case with its own callback in…
Branches
Unknown
Tags
Unknown