From e62ca586abe823787f25343dd6520dde8d532a3b Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Tue, 23 Apr 2024 18:12:19 +0200 Subject: [PATCH] autopilot: ignore blockHeightin countUsableHosts --- autopilot/contractor/evaluate.go | 1 + 1 file changed, 1 insertion(+) diff --git a/autopilot/contractor/evaluate.go b/autopilot/contractor/evaluate.go index 642387ab5..2412c7dcb 100644 --- a/autopilot/contractor/evaluate.go +++ b/autopilot/contractor/evaluate.go @@ -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++