Skip to content

Use contract and bandwidth prices to calculate host weight

Christopher Schinnerl requested to merge mnsl:host-weight into master

Created by: mnsl

calculateHostWeight now takes into account hostEntry's DownloadBandwidthPrice, UploadBandwidthPrice, and ContractPrice fields; previously only hostEntry.StoragePrice was considered.

This PR also renames the hostDB's AveragePrice method to AverageContractPrice for the sake of clarity (especially since contract and storage price have been sometimes been mixed up).

Merge request reports