Browse Source

swarm/network, cmd/swarm: swarm default network id is 3 (to match Ropsten)

zelig 9 years ago
parent
commit
4181046488
2 changed files with 2 additions and 2 deletions
  1. 1 1
      cmd/swarm/main.go
  2. 1 1
      swarm/network/protocol.go

+ 1 - 1
cmd/swarm/main.go

@@ -68,7 +68,7 @@ var (
 	}
 	SwarmNetworkIdFlag = cli.IntFlag{
 		Name:  "bzznetworkid",
-		Usage: "Network identifier (integer, default 322=swarm testnet)",
+		Usage: "Network identifier (integer, default 3=swarm testnet)",
 		Value: network.NetworkId,
 	}
 	SwarmConfigPathFlag = cli.StringFlag{

+ 1 - 1
swarm/network/protocol.go

@@ -51,7 +51,7 @@ const (
 	Version            = 0
 	ProtocolLength     = uint64(8)
 	ProtocolMaxMsgSize = 10 * 1024 * 1024
-	NetworkId          = 322
+	NetworkId          = 3
 )
 
 const (