mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
Merge pull request #149 from XinFinOrg/address_prefix_fix
Fix Invalid address in XDC Console.
This commit is contained in:
commit
7808840be0
2 changed files with 16 additions and 7 deletions
File diff suppressed because one or more lines are too long
|
|
@ -55,9 +55,9 @@ func DefaultDataDir() string {
|
||||||
home := homeDir()
|
home := homeDir()
|
||||||
if home != "" {
|
if home != "" {
|
||||||
if runtime.GOOS == "darwin" {
|
if runtime.GOOS == "darwin" {
|
||||||
return filepath.Join(home, "Library", "XDPoSChain")
|
return filepath.Join(home, "Library", "XDCchain")
|
||||||
} else if runtime.GOOS == "windows" {
|
} else if runtime.GOOS == "windows" {
|
||||||
return filepath.Join(home, "AppData", "Roaming", "XDPoSChain")
|
return filepath.Join(home, "AppData", "Roaming", "XDCchain")
|
||||||
} else {
|
} else {
|
||||||
return filepath.Join(home, ".XDC")
|
return filepath.Join(home, ".XDC")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue