SiaFoundation / renterd

A renter for Sia
https://sia.tech/software/renterd
MIT License
68 stars 20 forks source link

Smallest individual score should be 0.1 instead of SmallestNonZeroFloat #1595

Closed ChrisSchinnerl closed 3 weeks ago

ChrisSchinnerl commented 1 month ago

Update the lowest positive score returned by any individual scoring check (e.g. price) to be 0.1. The exception are cases where we return a 0 score right now. That way, as long as a host is below the gouging settings for example, one host will only ever be 10x better than another one for a particular score. That should also avoid potential precision errors.