Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update of clients inside the clients directory #276

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion commands/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func UpdateClients(ctx *cli.Context) (err error) {
toUpdate := []clients.ClientBinaryDependency{execution, consensus, validator}

for _, client := range toUpdate {
if client == clients.LighthouseValidator || client == clients.TekuValidator {
if client == clients.LighthouseValidator || client == clients.TekuValidator || client == clients.Nimbus2Validator {
continue
}

Expand Down
10 changes: 10 additions & 0 deletions dependencies/clients/besu.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,16 @@ func (b *BesuClient) Install(url string, isUpdate bool) (err error) {
return
}

func (b *BesuClient) Update() (err error) {
tag := b.getVersion()

log.WithField("dependencyTag", tag).Infof("⬇️ Updating %s", b.name)

url := b.ParseUrl(tag, "")

return b.Install(url, true)
}

func (b *BesuClient) FilePath() string {
return besuFolder
}
Expand Down
10 changes: 10 additions & 0 deletions dependencies/clients/erigon.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,16 @@ func (e *ErigonClient) Install(url string, isUpdate bool) (err error) {
return
}

func (e *ErigonClient) Update() (err error) {
tag := e.getVersion()

log.WithField("dependencyTag", tag).Infof("⬇️ Updating %s", e.name)

url := e.ParseUrl(tag, "")

return e.Install(url, true)
}

func (e *ErigonClient) PrepareStartFlags(ctx *cli.Context) (startFlags []string, err error) {
if !utils.FlagFileExists(ctx, flags.ErigonConfigFileFlag) {
err = errors.ErrFlagMissing
Expand Down
10 changes: 10 additions & 0 deletions dependencies/clients/nimbus2.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,16 @@ func (n *Nimbus2Client) Install(url string, isUpdate bool) (err error) {
return
}

func (n *Nimbus2Client) Update() (err error) {
tag := n.getVersion()

log.WithField("dependencyTag", tag).Infof("⬇️ Updating %s", n.name)

url := n.ParseUrl(tag, common.Nimbus2CommitHash)

return n.Install(url, true)
}

func (n *Nimbus2Client) FilePath() string {
return nimbus2Folder
}
Expand Down
10 changes: 10 additions & 0 deletions dependencies/clients/teku.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,16 @@ func (t *TekuClient) Install(url string, isUpdate bool) (err error) {
return
}

func (t *TekuClient) Update() (err error) {
tag := t.getVersion()

log.WithField("dependencyTag", tag).Infof("⬇️ Updating %s", t.name)

url := t.ParseUrl(tag, "")

return t.Install(url, true)
}

func (t *TekuClient) FilePath() string {
return tekuFolder
}
Expand Down
Loading