Skip to content

Commit

Permalink
Fixed Altair check (#119)
Browse files Browse the repository at this point in the history
* added api for checking altair upgrade

* fixed lint

* added licence

* fixed supportAltairUpgrade function
  • Loading branch information
sadiq1971 authored Oct 22, 2021
1 parent 1a0e990 commit c63e61b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions graph/schema.resolvers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c63e61b

Please sign in to comment.