Skip to content

Commit

Permalink
autopilot: ignore blockHeightin countUsableHosts
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSchinnerl committed Apr 23, 2024
1 parent da0a4a4 commit e62ca58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions autopilot/contractor/evaluate.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
func countUsableHosts(cfg api.AutopilotConfig, cs api.ConsensusState, fee types.Currency, period uint64, rs api.RedundancySettings, gs api.GougingSettings, hosts []api.Host) (usables uint64) {
gc := worker.NewGougingChecker(gs, cs, fee, period, cfg.Contracts.RenewWindow)
for _, host := range hosts {
host.PriceTable.HostBlockHeight = cs.BlockHeight // ignore block height
hc := checkHost(cfg, rs, gc, host, minValidScore)
if hc.Usability.IsUsable() {
usables++
Expand Down

0 comments on commit e62ca58

Please sign in to comment.