fix duplicate ip

This commit is contained in:
Ethan Buchman 2018-12-21 17:26:40 -05:00
parent 4366e43fb0
commit ace00cd226

View File

@ -152,6 +152,7 @@ func testnetFiles(cmd *cobra.Command, args []string) error {
nodeDir := filepath.Join(outputDir, fmt.Sprintf("%s%d", nodeDirPrefix, i)) nodeDir := filepath.Join(outputDir, fmt.Sprintf("%s%d", nodeDirPrefix, i))
config.SetRoot(nodeDir) config.SetRoot(nodeDir)
config.P2P.AddrBookStrict = false config.P2P.AddrBookStrict = false
config.P2P.AllowDuplicateIP = true
if populatePersistentPeers { if populatePersistentPeers {
config.P2P.PersistentPeers = persistentPeers config.P2P.PersistentPeers = persistentPeers
} }