From 34b456573c66c143427b33c5197d059ef779620a Mon Sep 17 00:00:00 2001 From: ali Date: Thu, 27 Jul 2023 10:08:45 +0300 Subject: [PATCH] account registry inspections into score --- inspect/scorecalc/pass_fail_calculator.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/inspect/scorecalc/pass_fail_calculator.go b/inspect/scorecalc/pass_fail_calculator.go index 30e0c8bd..1a9942cd 100644 --- a/inspect/scorecalc/pass_fail_calculator.go +++ b/inspect/scorecalc/pass_fail_calculator.go @@ -75,12 +75,11 @@ func (c *chainPassFailCalculator) CalculateScore(results *inspect.InspectionResu return 0, nil } - // TODO: Enable this after delegated staking. - // if results.Indicators[inspect.IndicatorRegistryAPIAccessible] == inspect.ResultFailure || - // results.Indicators[inspect.IndicatorRegistryAPIENS] == inspect.ResultFailure || - // results.Indicators[inspect.IndicatorRegistryAPIAssignments] == inspect.ResultFailure { - // return 0, nil - // } + if results.Indicators[inspect.IndicatorRegistryAPIAccessible] == inspect.ResultFailure || + results.Indicators[inspect.IndicatorRegistryAPIENS] == inspect.ResultFailure || + results.Indicators[inspect.IndicatorRegistryAPIAssignments] == inspect.ResultFailure { + return 0, nil + } return 1, nil }