aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/p2psim
diff options
context:
space:
mode:
authorViktor TrĂ³n <viktor.tron@gmail.com>2018-06-22 05:00:43 +0800
committerGitHub <noreply@github.com>2018-06-22 05:00:43 +0800
commiteaff89291ce998ba4bf9b9816ca8a15c8b85f440 (patch)
treec77d7a06627a1a7f578d0fec8e39788e66672e53 /cmd/p2psim
parentd926bf2c7e3182d694c15829a37a0ca7331cd03c (diff)
parente187711c6545487d4cac3701f0f506bb536234e2 (diff)
downloaddexon-eaff89291ce998ba4bf9b9816ca8a15c8b85f440.tar
dexon-eaff89291ce998ba4bf9b9816ca8a15c8b85f440.tar.gz
dexon-eaff89291ce998ba4bf9b9816ca8a15c8b85f440.tar.bz2
dexon-eaff89291ce998ba4bf9b9816ca8a15c8b85f440.tar.lz
dexon-eaff89291ce998ba4bf9b9816ca8a15c8b85f440.tar.xz
dexon-eaff89291ce998ba4bf9b9816ca8a15c8b85f440.tar.zst
dexon-eaff89291ce998ba4bf9b9816ca8a15c8b85f440.zip
Merge pull request #17041 from ethersphere/swarm-network-rewrite-merge
Swarm POC3 - happy solstice
Diffstat (limited to 'cmd/p2psim')
-rw-r--r--cmd/p2psim/main.go5
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 {