mailserver-canary: Disable fleet specification

This commit is contained in:
Pedro Pombeiro 2018-08-08 09:53:20 +02:00 committed by Pedro Pombeiro
parent 4219d56909
commit 9587d030a6
3 changed files with 5 additions and 4 deletions

View File

@ -192,7 +192,7 @@ func makeNodeConfig() (*params.NodeConfig, error) {
return nil, err
}
nodeConfig, err := params.NewNodeConfig(path.Join(workDir, ".ethereum"), "", params.FleetBeta, uint64(params.RopstenNetworkID))
nodeConfig, err := params.NewNodeConfig(path.Join(workDir, ".ethereum"), "", params.FleetUndefined, uint64(params.RopstenNetworkID))
if err != nil {
return nil, err
}

View File

@ -4,8 +4,9 @@ import "errors"
// Define available fleets.
const (
FleetBeta = "eth.beta"
FleetStaging = "eth.staging"
FleetUndefined = ""
FleetBeta = "eth.beta"
FleetStaging = "eth.staging"
)
type cluster struct {

View File

@ -376,7 +376,7 @@ func NewNodeConfig(dataDir, clstrCfgFile, fleet string, networkID uint64) (*Node
LogToStderr: LogToStderr,
ClusterConfigFile: clstrCfgFile,
ClusterConfig: &ClusterConfig{
Enabled: true,
Enabled: fleet != FleetUndefined,
Fleet: fleet,
StaticNodes: []string{},
BootNodes: []string{},