mailserver-canary: Disable fleet specification
This commit is contained in:
parent
4219d56909
commit
9587d030a6
|
@ -192,7 +192,7 @@ func makeNodeConfig() (*params.NodeConfig, error) {
|
||||||
return nil, err
|
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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,8 +4,9 @@ import "errors"
|
||||||
|
|
||||||
// Define available fleets.
|
// Define available fleets.
|
||||||
const (
|
const (
|
||||||
FleetBeta = "eth.beta"
|
FleetUndefined = ""
|
||||||
FleetStaging = "eth.staging"
|
FleetBeta = "eth.beta"
|
||||||
|
FleetStaging = "eth.staging"
|
||||||
)
|
)
|
||||||
|
|
||||||
type cluster struct {
|
type cluster struct {
|
||||||
|
|
|
@ -376,7 +376,7 @@ func NewNodeConfig(dataDir, clstrCfgFile, fleet string, networkID uint64) (*Node
|
||||||
LogToStderr: LogToStderr,
|
LogToStderr: LogToStderr,
|
||||||
ClusterConfigFile: clstrCfgFile,
|
ClusterConfigFile: clstrCfgFile,
|
||||||
ClusterConfig: &ClusterConfig{
|
ClusterConfig: &ClusterConfig{
|
||||||
Enabled: true,
|
Enabled: fleet != FleetUndefined,
|
||||||
Fleet: fleet,
|
Fleet: fleet,
|
||||||
StaticNodes: []string{},
|
StaticNodes: []string{},
|
||||||
BootNodes: []string{},
|
BootNodes: []string{},
|
||||||
|
|
Loading…
Reference in New Issue