mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-14 03:55:19 +00:00
12 lines
355 B
Go
12 lines
355 B
Go
package util
|
|
|
|
import (
|
|
"path/filepath"
|
|
)
|
|
|
|
// ZgChainHomePath returns the OS-specific filepath for the 0g-chain home directory
|
|
// Assumes network is running with kvtool installed from the sub-repository in tests/e2e/kvtool
|
|
func ZgChainHomePath() string {
|
|
return filepath.Join("kvtool", "full_configs", "generated", "0gchaind", "initstate", ".0gchain")
|
|
}
|