cmd/geth, cmd/utils, eth: internalize trusted node config file
This commit is contained in:
@ -233,7 +233,6 @@ JavaScript API. See https://github.com/ethereum/go-ethereum/wiki/Javascipt-Conso
|
||||
utils.UnlockedAccountFlag,
|
||||
utils.PasswordFileFlag,
|
||||
utils.BootNodesFlag,
|
||||
utils.TrustedNodesFlag,
|
||||
utils.DataDirFlag,
|
||||
utils.BlockchainVersionFlag,
|
||||
utils.JSpathFlag,
|
||||
|
@ -207,11 +207,6 @@ var (
|
||||
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",
|
||||
@ -298,7 +293,6 @@ func MakeEthConfig(clientID, version string, ctx *cli.Context) *eth.Config {
|
||||
Shh: ctx.GlobalBool(WhisperEnabledFlag.Name),
|
||||
Dial: true,
|
||||
BootNodes: ctx.GlobalString(BootNodesFlag.Name),
|
||||
TrustedNodes: ctx.GlobalString(TrustedNodesFlag.Name),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user