mirror of https://github.com/poanetwork/gecko.git
added local path to plugin
This commit is contained in:
parent
3609a73073
commit
1d4c368462
|
@ -38,14 +38,16 @@ var (
|
||||||
Config = node.Config{}
|
Config = node.Config{}
|
||||||
Err error
|
Err error
|
||||||
defaultNetworkName = genesis.TestnetName
|
defaultNetworkName = genesis.TestnetName
|
||||||
defaultDbDir = os.ExpandEnv(filepath.Join("$HOME", ".gecko", "db"))
|
|
||||||
defaultStakingKeyPath = os.ExpandEnv(filepath.Join("$HOME", ".gecko", "staking", "staker.key"))
|
|
||||||
defaultStakingCertPath = os.ExpandEnv(filepath.Join("$HOME", ".gecko", "staking", "staker.crt"))
|
|
||||||
|
|
||||||
|
homeDir = os.ExpandEnv("$HOME")
|
||||||
|
defaultDbDir = filepath.Join(homeDir, ".gecko", "db")
|
||||||
|
defaultStakingKeyPath = filepath.Join(homeDir, ".gecko", "staking", "staker.key")
|
||||||
|
defaultStakingCertPath = filepath.Join(homeDir, ".gecko", "staking", "staker.crt")
|
||||||
defaultPluginDirs = []string{
|
defaultPluginDirs = []string{
|
||||||
"./build/plugins",
|
filepath.Join(".", "build", "plugins"),
|
||||||
"./plugins",
|
filepath.Join(".", "plugins"),
|
||||||
os.ExpandEnv(filepath.Join("$HOME", ".gecko", "plugins")),
|
filepath.Join("/", "usr", "local", "lib", "gecko"),
|
||||||
|
filepath.Join(homeDir, ".gecko", "plugins"),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue