Skip to content

Commit

Permalink
contractor: exclude age score from clamping
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSchinnerl committed Oct 29, 2024
1 parent 6dc9173 commit aabc509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autopilot/contractor/hostscore.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func hostScore(cfg api.AutopilotConfig, gs api.GougingSettings, h api.Host, expe
// data will store twice the expectation
allocationPerHost := idealDataPerHost * 2
return api.HostScoreBreakdown{
Age: clampScore(ageScore(h)),
Age: ageScore(h), // not clamped since values are hardcoded
Collateral: clampScore(collateralScore(cCfg, h.PriceTable.HostPriceTable, uint64(allocationPerHost))),
Interactions: clampScore(interactionScore(h)),
Prices: clampScore(priceAdjustmentScore(h.PriceTable.HostPriceTable, gs)),
Expand Down

0 comments on commit aabc509

Please sign in to comment.