HomePhabricator

[avalanche] Separate pubkey from AvalancheState

Description

[avalanche] Separate pubkey from AvalancheState

Summary:
AvalancheState is really a container for various Avalanche statistics rather than the entire state. Decoupling the pubkey from this makes sense. I made it optional to make it clear that not all nodes must have an Avalanche pubkey.

Future patches will refactor and rename AvalancheState.

Test Plan:

ninja check check-functional

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
sdulfariAuthored on Oct 17 2022, 18:34
sdulfariPushed on Oct 18 2022, 15:59
Reviewer
Restricted Project
Differential Revision
D12290: [avalanche] Separate pubkey from AvalancheState
Parents
rABC214c0d52faa8: simplify ValidDeployment check to avoid gcc warning
Branches
Unknown
Tags
Unknown