Skip to content

Improve redundancy reporting

Christopher Schinnerl requested to merge improv-red into master

Created by: ChrisSchinnerl

This PR improves the redundancy report of the renter endpoint. The renter doesn't count contracts that are not good for renewal towards redundancy while the renter endpoint does. That's why the renter might report redundancies > 3x. Unfortunately we can't simply change the renter endpoint's behavior to match the renter's internal behavior since that might lead to redundancies < 1x which might lead to a poor UX even though the files can still be downloaded. That's why this PR changes the endpoint to calculate both redundancies and if the redundancy without goodForRenew contracts drops below 1 it reports the higher redundancy.

Merge request reports