Skip to content

Commit

Permalink
Add Prime to Quai dir
Browse files Browse the repository at this point in the history
  • Loading branch information
0xalank committed Aug 17, 2021
1 parent e397b10 commit ea2def4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions node/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,19 @@ func DefaultDataDir() string {
if home != "" {
switch runtime.GOOS {
case "darwin":
return filepath.Join(home, "Library", "Ethereum")
return filepath.Join(home, "Library", "Quai", "Prime")
case "windows":
// We used to put everything in %HOME%\AppData\Roaming, but this caused
// problems with non-typical setups. If this fallback location exists and
// is non-empty, use it, otherwise DTRT and check %LOCALAPPDATA%.
fallback := filepath.Join(home, "AppData", "Roaming", "Ethereum")
fallback := filepath.Join(home, "AppData", "Roaming", "Quai", "Prime")
appdata := windowsAppData()
if appdata == "" || isNonEmptyDir(fallback) {
return fallback
}
return filepath.Join(appdata, "Ethereum")
return filepath.Join(appdata, "Quai", "Prime")
default:
return filepath.Join(home, ".ethereum")
return filepath.Join(home, ".quai", "prime")
}
}
// As we cannot guess a stable location, return empty and handle later
Expand Down

0 comments on commit ea2def4

Please sign in to comment.