@@ -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
913884func (c * Client ) PurgeAllKeys (composeFiles []string ) error {
914885 // Get the command to run with root privileges
0 commit comments