mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
chore: update references from geth to aiigo in comments and default data directory
This commit is contained in:
parent
ccd6234846
commit
56858e3311
2 changed files with 5 additions and 5 deletions
|
|
@ -173,7 +173,7 @@ func (ec *Client) GCStats(ctx context.Context) (*debug.GCStats, error) {
|
||||||
return &result, err
|
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) {
|
func (ec *Client) MemStats(ctx context.Context) (*runtime.MemStats, error) {
|
||||||
var result runtime.MemStats
|
var result runtime.MemStats
|
||||||
err := ec.c.CallContext(ctx, &result, "debug_memStats")
|
err := ec.c.CallContext(ctx, &result, "debug_memStats")
|
||||||
|
|
|
||||||
|
|
@ -83,19 +83,19 @@ func DefaultDataDir() string {
|
||||||
if home != "" {
|
if home != "" {
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "darwin":
|
case "darwin":
|
||||||
return filepath.Join(home, "Library", "Ethereum")
|
return filepath.Join(home, "Library", "Aiigo")
|
||||||
case "windows":
|
case "windows":
|
||||||
// We used to put everything in %HOME%\AppData\Roaming, but this caused
|
// We used to put everything in %HOME%\AppData\Roaming, but this caused
|
||||||
// problems with non-typical setups. If this fallback location exists and
|
// problems with non-typical setups. If this fallback location exists and
|
||||||
// is non-empty, use it, otherwise DTRT and check %LOCALAPPDATA%.
|
// 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()
|
appdata := windowsAppData()
|
||||||
if appdata == "" || isNonEmptyDir(fallback) {
|
if appdata == "" || isNonEmptyDir(fallback) {
|
||||||
return fallback
|
return fallback
|
||||||
}
|
}
|
||||||
return filepath.Join(appdata, "Ethereum")
|
return filepath.Join(appdata, "Aiigo")
|
||||||
default:
|
default:
|
||||||
return filepath.Join(home, ".ethereum")
|
return filepath.Join(home, ".aiigo")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// As we cannot guess a stable location, return empty and handle later
|
// As we cannot guess a stable location, return empty and handle later
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue