chore: update references from geth to aiigo in comments and default data directory

This commit is contained in:
Cyka 2025-04-21 12:48:38 +08:00
parent ccd6234846
commit 56858e3311
2 changed files with 5 additions and 5 deletions

View file

@ -173,7 +173,7 @@ func (ec *Client) GCStats(ctx context.Context) (*debug.GCStats, error) {
return &result, err
}
// MemStats retrieves the current memory stats from a geth node.
// MemStats retrieves the current memory stats from a aiigo node.
func (ec *Client) MemStats(ctx context.Context) (*runtime.MemStats, error) {
var result runtime.MemStats
err := ec.c.CallContext(ctx, &result, "debug_memStats")

View file

@ -83,19 +83,19 @@ func DefaultDataDir() string {
if home != "" {
switch runtime.GOOS {
case "darwin":
return filepath.Join(home, "Library", "Ethereum")
return filepath.Join(home, "Library", "Aiigo")
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", "Aiigo")
appdata := windowsAppData()
if appdata == "" || isNonEmptyDir(fallback) {
return fallback
}
return filepath.Join(appdata, "Ethereum")
return filepath.Join(appdata, "Aiigo")
default:
return filepath.Join(home, ".ethereum")
return filepath.Join(home, ".aiigo")
}
}
// As we cannot guess a stable location, return empty and handle later