HomePhabricator

[avalanche] Add a way to pass avalanche config values around

Description

[avalanche] Add a way to pass avalanche config values around

Summary:
As the avalanche module grows, it is becoming more challenging to pass around
config values without making a mess as these values pass between multiple
levels of dependencies. This patch adds an AvalancheConfig class for passing
these parameters around without needing to modify every intermediate API.

queryTimeoutDuration is used as a proof of concept, but more impact will be
evident in voting and proof verification parameters.

Test Plan:

ninja check

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
sdulfariAuthored on Jul 16 2022, 05:40
sdulfariPushed on Jul 25 2022, 21:38
Reviewer
Restricted Project
Differential Revision
D11761: [avalanche] Add a way to pass avalanche config values around
Parents
rABCa5511ecff41e: [avalanche] Request more node addresses upon receipt of a dangling proof
Branches
Unknown
Tags
Unknown