[p2p] add hmy prefix for testnet/pangaea

Signed-off-by: Leo Chen <leo@harmony.one>
pull/1688/head
Leo Chen 5 years ago
parent 2240b8d48f
commit 1b4c128c88
  1. 10
      internal/configs/node/group.go

@ -38,15 +38,15 @@ func getNetworkPrefix(shardID ShardID) (netPre string) {
case Mainnet: case Mainnet:
netPre = "harmony" netPre = "harmony"
case Testnet: case Testnet:
netPre = "testnet" netPre = "hmy/testnet"
case Pangaea: case Pangaea:
netPre = "pangaea" netPre = "hmy/pangaea"
case Devnet: case Devnet:
netPre = "devnet" netPre = "hmy/devnet"
case Localnet: case Localnet:
netPre = "local" netPre = "hmy/local"
default: default:
netPre = "misc" netPre = "hmy/misc"
} }
return return
} }

Loading…
Cancel
Save