remove bootnodes for ETH mainnet

This commit is contained in:
Tuna 2018-09-05 14:55:51 +07:00
parent 7c55084785
commit 3e5328a08b
2 changed files with 1 additions and 4 deletions

View file

@ -148,9 +148,6 @@ func makeConfigNode(ctx *cli.Context) (*node.Node, tomoConfig) {
}
}
cfg.Account.Passwords = passwords
//Apply Bootnodes
applyValues(cfg.Bootnodes.Mainnet, &params.MainnetBootnodes)
applyValues(cfg.Bootnodes.Testnet, &params.TestnetBootnodes)
// Apply flags.
utils.SetNodeConfig(ctx, &cfg.Node)

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) {