OSDN Git Service

feat: build cross-out tx (#74)
[bytom/vapor.git] / config / config.go
index 03d7d6f..69b4882 100644 (file)
@@ -241,14 +241,14 @@ func DefaultDataDir() string {
        // Try to place the data folder in the user's home dir
        home := homeDir()
        if home == "" {
-               return "./.bytom"
+               return "./.vapor"
        }
        switch runtime.GOOS {
        case "darwin":
                // In order to be compatible with old data path,
                // copy the data from the old path to the new path
-               oldPath := filepath.Join(home, "Library", "Bytom")
-               newPath := filepath.Join(home, "Library", "Application Support", "Bytom")
+               oldPath := filepath.Join(home, "Library", "Vapor")
+               newPath := filepath.Join(home, "Library", "Application Support", "Vapor")
                if !isFolderNotExists(oldPath) && isFolderNotExists(newPath) {
                        if err := os.Rename(oldPath, newPath); err != nil {
                                log.Errorf("DefaultDataDir: %v", err)
@@ -257,9 +257,9 @@ func DefaultDataDir() string {
                }
                return newPath
        case "windows":
-               return filepath.Join(home, "AppData", "Roaming", "Bytom")
+               return filepath.Join(home, "AppData", "Roaming", "Vapor")
        default:
-               return filepath.Join(home, ".bytom")
+               return filepath.Join(home, ".vapor")
        }
 }