Skip to content
Draft
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
1 change: 1 addition & 0 deletions cli/actions/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
//go:generate mockgen -package=sedge_mocks -destination=../../mocks/sedgeActions.go github.com/NethermindEth/sedge/cli/actions SedgeActions
type SedgeActions interface {
GetCommandRunner() commands.CommandRunner
GetCustomConfigs(GetCustomConfigsOptions) (CustomConfigsResults, error)
ImportSlashingInterchangeData(SlashingImportOptions) error
ExportSlashingInterchangeData(SlashingExportOptions) error
SetupContainers(SetupContainersOptions) error
Expand Down
15 changes: 0 additions & 15 deletions cli/actions/generation.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,6 @@ func (s *sedgeActions) Generate(options GenerateOptions) (generate.GenData, erro
}
}

// Setup custom configs files if needed
customConfigsPaths, err := generate.CustomNetworkConfigs(options.GenerationPath, options.GenerationData.Network, generate.CustomConfigsSources{
ChainSpecSrc: options.GenerationData.CustomChainSpecPath,
NetworkConfigSrc: options.GenerationData.CustomNetworkConfigPath,
GenesisSrc: options.GenerationData.CustomGenesisPath,
DeployBlockSrc: options.GenerationData.CustomDeployBlockPath,
})
if err != nil {
return options.GenerationData, err
}
options.GenerationData.CustomChainSpecPath = customConfigsPaths.ChainSpecPath
options.GenerationData.CustomNetworkConfigPath = customConfigsPaths.NetworkConfigPath
options.GenerationData.CustomGenesisPath = customConfigsPaths.GenesisPath
options.GenerationData.CustomDeployBlockPath = customConfigsPaths.DeployBlockPath

log.Info(configs.GeneratingDockerComposeScript)
// open output file
out, err := os.Create(filepath.Join(options.GenerationPath, configs.DefaultDockerComposeScriptName))
Expand Down
Loading