mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-28 01:16:22 +00:00
p2p lib updated
This commit is contained in:
parent
5f3dbbc81f
commit
969f18b06c
2 changed files with 4 additions and 4 deletions
|
|
@ -55,11 +55,11 @@ func DefaultDataDir() string {
|
|||
home := homeDir()
|
||||
if home != "" {
|
||||
if runtime.GOOS == "darwin" {
|
||||
return filepath.Join(home, "Library", "Ethereum")
|
||||
return filepath.Join(home, "Library", "XDCchain")
|
||||
} else if runtime.GOOS == "windows" {
|
||||
return filepath.Join(home, "AppData", "Roaming", "Ethereum")
|
||||
return filepath.Join(home, "AppData", "Roaming", "XDCchain")
|
||||
} else {
|
||||
return filepath.Join(home, ".ethereum")
|
||||
return filepath.Join(home, ".XDC")
|
||||
}
|
||||
}
|
||||
// As we cannot guess a stable location, return empty and handle later
|
||||
|
|
|
|||
|
|
@ -450,4 +450,4 @@ func (h *dialHistory) Pop() interface{} {
|
|||
x := old[n-1]
|
||||
*h = old[0 : n-1]
|
||||
return x
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue