Update defaults.go

This commit is contained in:
Anil Chinchawale 2021-12-05 11:50:15 +05:30 committed by GitHub
parent 079e4e16d5
commit 72fb654a13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,9 +55,9 @@ func DefaultDataDir() string {
home := homeDir()
if home != "" {
if runtime.GOOS == "darwin" {
return filepath.Join(home, "Library", "XDPoSChain")
return filepath.Join(home, "Library", "XDCchain")
} else if runtime.GOOS == "windows" {
return filepath.Join(home, "AppData", "Roaming", "XDPoSChain")
return filepath.Join(home, "AppData", "Roaming", "XDCchain")
} else {
return filepath.Join(home, ".XDC")
}