mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-29 09:45:18 +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")
|
|
}
|