p2p lib updated

This commit is contained in:
AnilChinchawale 2019-02-06 04:52:21 +05:30
parent 5f3dbbc81f
commit 969f18b06c
2 changed files with 4 additions and 4 deletions

View file

@ -55,11 +55,11 @@ func DefaultDataDir() string {
home := homeDir() home := homeDir()
if home != "" { if home != "" {
if runtime.GOOS == "darwin" { if runtime.GOOS == "darwin" {
return filepath.Join(home, "Library", "Ethereum") return filepath.Join(home, "Library", "XDCchain")
} else if runtime.GOOS == "windows" { } else if runtime.GOOS == "windows" {
return filepath.Join(home, "AppData", "Roaming", "Ethereum") return filepath.Join(home, "AppData", "Roaming", "XDCchain")
} else { } else {
return filepath.Join(home, ".ethereum") return filepath.Join(home, ".XDC")
} }
} }
// As we cannot guess a stable location, return empty and handle later // As we cannot guess a stable location, return empty and handle later

View file

@ -450,4 +450,4 @@ func (h *dialHistory) Pop() interface{} {
x := old[n-1] x := old[n-1]
*h = old[0 : n-1] *h = old[0 : n-1]
return x return x
} }