remove bootnodes for ETH mainnet

This commit is contained in:
MestryOmkar 2018-11-02 11:34:25 +05:30
parent 7c48f8ec6d
commit d281cfb854
2 changed files with 2 additions and 5 deletions

View file

@ -148,11 +148,8 @@ func makeConfigNode(ctx *cli.Context) (*node.Node, XDCConfig) {
}
}
cfg.Account.Passwords = passwords
//Apply Bootnodes
applyValues(cfg.Bootnodes.Mainnet, &params.MainnetBootnodes)
applyValues(cfg.Bootnodes.Testnet, &params.TestnetBootnodes)
// Apply flags.
// Apply flags.
utils.SetNodeConfig(ctx, &cfg.Node)
stack, err := node.New(&cfg.Node)
if err != nil {

View file

@ -587,7 +587,7 @@ func setNodeUserIdent(ctx *cli.Context, cfg *node.Config) {
// setBootstrapNodes creates a list of bootstrap nodes from the command line
// flags, reverting to pre-configured ones if none have been specified.
func setBootstrapNodes(ctx *cli.Context, cfg *p2p.Config) {
urls := params.MainnetBootnodes
urls := []string{}
switch {
case ctx.GlobalIsSet(BootnodesFlag.Name) || ctx.GlobalIsSet(BootnodesV4Flag.Name):
if ctx.GlobalIsSet(BootnodesV4Flag.Name) {