Use contract and bandwidth prices to calculate host weight
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).