mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 13:21:37 +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()
|
||||
if home != "" {
|
||||
if runtime.GOOS == "darwin" {
|
||||
return filepath.Join(home, "Library", "XDPoSChain")
|
||||
return filepath.Join(home, "Library", "XDCchain")
|
||||
} else if runtime.GOOS == "windows" {
|
||||
return filepath.Join(home, "AppData", "Roaming", "XDPoSChain")
|
||||
return filepath.Join(home, "AppData", "Roaming", "XDCchain")
|
||||
} else {
|
||||
return filepath.Join(home, ".XDC")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue