Constellation-Labs / constellation

:milky_way::satellite: Decentralized Application Integration Platform
Apache License 2.0
151 stars 40 forks source link

Add support for peer score labels with CLI option #1602

Closed ryle-goehausen closed 2 years ago

ryle-goehausen commented 2 years ago

Add CLI option to node config for peer labels as Map[Id, Double] -- refactor TrustManager to take this as input. StoredReputation needs to take this as the init param, along with whitelist scores added if substituted. Lowered default whitelist from 1d to 0.5 -- and removed the 1d update happening in observation updates.

Will need more work to actually make use of observation information -- should be done separately. Also prevented prediction updates from overwriting the original stored scores. I still need to look through other dependencies to make sure this is fine (in later PRs), but I think it should be safe.