From c63e61b1940b2c56542926597744bed21e024e74 Mon Sep 17 00:00:00 2001 From: Sadiqur Rahman Date: Fri, 22 Oct 2021 13:52:24 +0600 Subject: [PATCH] Fixed Altair check (#119) * added api for checking altair upgrade * fixed lint * added licence * fixed supportAltairUpgrade function --- graph/schema.resolvers.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/graph/schema.resolvers.go b/graph/schema.resolvers.go index a1c40ff..2052e6b 100644 --- a/graph/schema.resolvers.go +++ b/graph/schema.resolvers.go @@ -226,27 +226,27 @@ func supportAltairUpgrade(clientName, ver string) bool { switch svcModels.ClientName(clientName) { case svcModels.PrysmClient: v, _ := version.NewVersion("v2.0.0") - if v.GreaterThanOrEqual(clientVersion) { + if clientVersion.GreaterThanOrEqual(v) { return true } case svcModels.TekuClient: v, _ := version.NewVersion("v21.9.2") - if v.GreaterThanOrEqual(clientVersion) { + if clientVersion.GreaterThanOrEqual(v) { return true } case svcModels.LighthouseClient: v, _ := version.NewVersion("v2.0.0") - if v.GreaterThanOrEqual(clientVersion) { + if clientVersion.GreaterThanOrEqual(v) { return true } case svcModels.NimbusClient: v, _ := version.NewVersion("v1.5.0") - if v.GreaterThanOrEqual(clientVersion) { + if clientVersion.GreaterThanOrEqual(v) { return true } case svcModels.LodestarClient: v, _ := version.NewVersion("v0.31.0") - if v.GreaterThanOrEqual(clientVersion) { + if clientVersion.GreaterThanOrEqual(v) { return true } default: