Skip to content

Commit 14bda54

Browse files
authored
Merge pull request #790 from jshufro/jms/removeecmigrator
Remove ec migrator
2 parents 9a34a02 + e452fb0 commit 14bda54

6 files changed

Lines changed: 0 additions & 105 deletions

File tree

docker/rocketpool-ec-migrator

Lines changed: 0 additions & 11 deletions
This file was deleted.

rocketpool-cli/service/service.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ const (
3838
ApiContainerSuffix string = "_api"
3939
WatchtowerContainerSuffix string = "_watchtower"
4040
PruneProvisionerContainerSuffix string = "_prune_provisioner"
41-
EcMigratorContainerSuffix string = "_ec_migrator"
4241
clientDataVolumeName string = "/ethclient"
4342
dataFolderVolumeName string = "/.rocketpool/data"
4443

rocketpool/ec_migrate multi.sh

Lines changed: 0 additions & 23 deletions
This file was deleted.

rocketpool/ec_migrate.sh

Lines changed: 0 additions & 36 deletions
This file was deleted.

shared/services/config/smartnode-config.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import (
1414
const (
1515
smartnodeTag string = "rocketpool/smartnode:v" + shared.RocketPoolVersion
1616
pruneProvisionerTag string = "rocketpool/eth1-prune-provision:v0.0.1"
17-
ecMigratorTag string = "rocketpool/ec-migrator:v1.0.0"
1817
NetworkID string = "network"
1918
ProjectNameID string = "projectName"
2019
SnapshotID string = "rocketpool-dao.eth"
@@ -750,10 +749,6 @@ func (config *SmartnodeConfig) GetPruneProvisionerContainerTag() string {
750749
return pruneProvisionerTag
751750
}
752751

753-
func (cfg *SmartnodeConfig) GetEcMigratorContainerTag() string {
754-
return ecMigratorTag
755-
}
756-
757752
func (cfg *SmartnodeConfig) GetSnapshotApiDomain() string {
758753
return cfg.snapshotApiDomain[cfg.Network.Value.(config.Network)]
759754
}

shared/services/rocketpool/client.go

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212
"os"
1313
"os/exec"
1414
"path/filepath"
15-
"strconv"
1615
"strings"
1716
"time"
1817

@@ -881,34 +880,6 @@ func (c *Client) RunNethermindPruneStarter(executionContainerName string, pruneS
881880
return nil
882881
}
883882

884-
// Runs the EC migrator
885-
func (c *Client) RunEcMigrator(container string, volume string, targetDir string, mode string, image string) error {
886-
cmd := fmt.Sprintf("docker run --rm --name %s -v %s:/ethclient -v %s:/mnt/external -e EC_MIGRATE_MODE='%s' %s", container, volume, targetDir, mode, image)
887-
err := c.printOutput(cmd)
888-
if err != nil {
889-
return err
890-
}
891-
892-
return nil
893-
}
894-
895-
// Gets the size of the target directory via the EC migrator for importing, which should have the same permissions as exporting
896-
func (c *Client) GetDirSizeViaEcMigrator(container string, targetDir string, image string) (uint64, error) {
897-
cmd := fmt.Sprintf("docker run --rm --name %s -v %s:/mnt/external -e OPERATION='size' %s", container, targetDir, image)
898-
output, err := c.readOutput(cmd)
899-
if err != nil {
900-
return 0, fmt.Errorf("Error getting source directory size: %w", err)
901-
}
902-
903-
trimmedOutput := strings.TrimRight(string(output), "\n")
904-
dirSize, err := strconv.ParseUint(trimmedOutput, 0, 64)
905-
if err != nil {
906-
return 0, fmt.Errorf("Error parsing directory size output [%s]: %w", trimmedOutput, err)
907-
}
908-
909-
return dirSize, nil
910-
}
911-
912883
// Deletes the node wallet and all validator keys, and restarts the Docker containers
913884
func (c *Client) PurgeAllKeys(composeFiles []string) error {
914885
// Get the command to run with root privileges

0 commit comments

Comments
 (0)