HomePhabricator

[avalanche] Compute a node activity score

Description

[avalanche] Compute a node activity score

Summary:
This score reflects the node activity over the last invs polled. It ranges between 0 and 100 so it can be easily expressed as a percentage.
This score can be used for determining which node is the most reliable in a peer and protect it from eviction.

Ref T1634.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: deadalnix

Maniphest Tasks: T1634

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

Details

Provenance
FabienAuthored on Jul 26 2021, 18:25
FabienPushed on Aug 6 2021, 07:47
Reviewer
Restricted Project
Differential Revision
D9839: [avalanche] Compute a node activity score
Parents
rABCd1798da57e17: [Cashtab] remove price api order of magnitude error check
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task