Skip to content

Commit

Permalink
change default data dir bitcoin->niobiocoin
Browse files Browse the repository at this point in the history
  • Loading branch information
Marconi Pereira Soldate committed Jan 20, 2025
1 parent c1d5677 commit bd1eb6c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/common/args.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -730,11 +730,11 @@ fs::path GetDefaultDataDir()
#ifdef WIN32
// Windows
// Check for existence of datadir in old location and keep it there
fs::path legacy_path = GetSpecialFolderPath(CSIDL_APPDATA) / "Bitcoin";
fs::path legacy_path = GetSpecialFolderPath(CSIDL_APPDATA) / "Niobiocoin";
if (fs::exists(legacy_path)) return legacy_path;

// Otherwise, fresh installs can start in the new, "proper" location
return GetSpecialFolderPath(CSIDL_LOCAL_APPDATA) / "Bitcoin";
return GetSpecialFolderPath(CSIDL_LOCAL_APPDATA) / "Niobiocoin";
#else
fs::path pathRet;
char* pszHome = getenv("HOME");
Expand All @@ -744,10 +744,10 @@ fs::path GetDefaultDataDir()
pathRet = fs::path(pszHome);
#ifdef __APPLE__
// macOS
return pathRet / "Library/Application Support/Bitcoin";
return pathRet / "Library/Application Support/Niobiocoin";
#else
// Unix-like
return pathRet / ".bitcoin";
return pathRet / ".niobiocoin";
#endif
#endif
}
Expand Down

0 comments on commit bd1eb6c

Please sign in to comment.