mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
set Node.P2P.StaticNodes and Node.P2P.TrustedNodes
This commit is contained in:
parent
f951e23fb5
commit
bdc3d6e1c6
1 changed files with 2 additions and 0 deletions
|
|
@ -968,6 +968,8 @@ func SetP2PConfig(ctx *cli.Context, cfg *p2p.Config) {
|
|||
// SetNodeConfig applies node-related command line flags to the config.
|
||||
func SetNodeConfig(ctx *cli.Context, cfg *node.Config) {
|
||||
SetP2PConfig(ctx, &cfg.P2P)
|
||||
cfg.P2P.StaticNodes = cfg.StaticNodes()
|
||||
cfg.P2P.TrustedNodes = cfg.TrustedNodes()
|
||||
setIPC(ctx, cfg)
|
||||
setHTTP(ctx, cfg)
|
||||
setWS(ctx, cfg)
|
||||
|
|
|
|||
Loading…
Reference in a new issue