aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-04-29 23:04:08 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-04-30 21:03:10 +0800
commitde0549fabb8be4dbaf382ee68ec1b702cb0c5c97 (patch)
treebf3f8c78ff0d9e82e111d63ac12021d350520e8e /cmd/utils
parent3fef60190384106af390dd23a65384b9cc6e4a28 (diff)
downloaddexon-de0549fabb8be4dbaf382ee68ec1b702cb0c5c97.tar.gz
dexon-de0549fabb8be4dbaf382ee68ec1b702cb0c5c97.tar.zst
dexon-de0549fabb8be4dbaf382ee68ec1b702cb0c5c97.zip
cmd/geth, cmd/mist, cmd/utils, eth, p2p: support trusted peers
Diffstat (limited to 'cmd/utils')
-rw-r--r--cmd/utils/flags.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index c013510d8..f52bfc21f 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -202,11 +202,16 @@ var (
Usage: "Network listening port",
Value: 30303,
}
- BootnodesFlag = cli.StringFlag{
+ BootNodesFlag = cli.StringFlag{
Name: "bootnodes",
Usage: "Space-separated enode URLs for p2p discovery bootstrap",
Value: "",
}
+ TrustedNodesFlag = cli.StringFlag{
+ Name: "trustednodes",
+ Usage: "List of trusted nodes (either an enode list or path to a json file of enodes)",
+ Value: "",
+ }
NodeKeyFileFlag = cli.StringFlag{
Name: "nodekey",
Usage: "P2P node key file",
@@ -292,7 +297,8 @@ func MakeEthConfig(clientID, version string, ctx *cli.Context) *eth.Config {
NodeKey: GetNodeKey(ctx),
Shh: ctx.GlobalBool(WhisperEnabledFlag.Name),
Dial: true,
- BootNodes: ctx.GlobalString(BootnodesFlag.Name),
+ BootNodes: ctx.GlobalString(BootNodesFlag.Name),
+ TrustedNodes: ctx.GlobalString(TrustedNodesFlag.Name),
}
}