From 56858e3311172cf80b57950d014dcdadd0561754 Mon Sep 17 00:00:00 2001 From: Cyka <1354250064mdzz@gmail.com> Date: Mon, 21 Apr 2025 12:48:38 +0800 Subject: [PATCH] chore: update references from geth to aiigo in comments and default data directory --- ethclient/gethclient/gethclient.go | 2 +- node/defaults.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ethclient/gethclient/gethclient.go b/ethclient/gethclient/gethclient.go index 4454146d62..b3214a23c5 100644 --- a/ethclient/gethclient/gethclient.go +++ b/ethclient/gethclient/gethclient.go @@ -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") diff --git a/node/defaults.go b/node/defaults.go index 307d9e186a..fef04a3e37 100644 --- a/node/defaults.go +++ b/node/defaults.go @@ -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