diff options
Diffstat (limited to 'cmd/p2psim/main.go')
-rw-r--r-- | cmd/p2psim/main.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/p2psim/main.go b/cmd/p2psim/main.go index 0c8ed038d..d32c29863 100644 --- a/cmd/p2psim/main.go +++ b/cmd/p2psim/main.go @@ -275,9 +275,8 @@ func createNode(ctx *cli.Context) error { if len(ctx.Args()) != 0 { return cli.ShowCommandHelp(ctx, ctx.Command.Name) } - config := &adapters.NodeConfig{ - Name: ctx.String("name"), - } + config := adapters.RandomNodeConfig() + config.Name = ctx.String("name") if key := ctx.String("key"); key != "" { privKey, err := crypto.HexToECDSA(key) if err != nil { |