Merge pull request #167 from ngtuna/bootnode

remove bootnodes for ETH mainnet
This commit is contained in:
Tuna 2018-09-06 11:35:15 +07:00 committed by GitHub
commit 76812c9b0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View file

@ -151,9 +151,6 @@ func makeConfigNode(ctx *cli.Context) (*node.Node, tomoConfig) {
} }
} }
cfg.Account.Passwords = passwords 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) 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 // setBootstrapNodes creates a list of bootstrap nodes from the command line
// flags, reverting to pre-configured ones if none have been specified. // flags, reverting to pre-configured ones if none have been specified.
func setBootstrapNodes(ctx *cli.Context, cfg *p2p.Config) { func setBootstrapNodes(ctx *cli.Context, cfg *p2p.Config) {
urls := params.MainnetBootnodes urls := []string{}
switch { switch {
case ctx.GlobalIsSet(BootnodesFlag.Name) || ctx.GlobalIsSet(BootnodesV4Flag.Name): case ctx.GlobalIsSet(BootnodesFlag.Name) || ctx.GlobalIsSet(BootnodesV4Flag.Name):
if ctx.GlobalIsSet(BootnodesV4Flag.Name) { if ctx.GlobalIsSet(BootnodesV4Flag.Name) {