Page MenuHomePhabricator

[avalanche] Cache the peer score
AcceptedPublic

Authored by Fabien on Fri, Sep 3, 13:33.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Summary

Since it is not possible to update the score for a proof at the moment, we can cache the value to avoid recomputing every time. This especially makes sense after D10031 since the proof score is used as a key for the peer set.

This is an optimization only and does not change the behavior.

Note that this might no stand if the proof format is changed so the score can be updated.

Test Plan
ninja all check-all

Diff Detail