mirror of
https://github.com/luxfi/netrunner.git
synced 2026-07-27 00:04:23 +00:00
- Update github.com/luxfi/keys v1.0.5 → v1.0.6 - Update github.com/luxfi/genesis v1.5.18 → v1.5.19 - Remove local replace directives for keys and genesis - Use published package versions for reproducible builds
36 lines
1.1 KiB
Go
36 lines
1.1 KiB
Go
// Copyright (C) 2021-2025, Lux Industries Inc. All rights reserved.
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
package constants
|
|
|
|
import "path/filepath"
|
|
|
|
const (
|
|
LogNameMain = "main"
|
|
LogNameControl = "control"
|
|
LogNameTest = "test"
|
|
RootDirPrefix = "network-runner-root-data"
|
|
|
|
// Network run directory structure (flat, no nesting)
|
|
// Structure: ~/.lux/runs/<networkName>/run_<timestamp>/node1/, node2/, ...
|
|
RunsDir = "runs" // Top-level runs directory
|
|
RunDirPrefix = "run" // Prefix for timestamped run directories
|
|
DefaultNetwork = "local" // Default network name
|
|
|
|
// Unified chain config directory (shared across all nodes)
|
|
// Structure: ~/.lux/chains/<chainName>/genesis.json, config.json, upgrade.json
|
|
ChainsDir = "chains"
|
|
ChainGenesisFile = "genesis.json"
|
|
ChainConfigFile = "config.json"
|
|
ChainUpgradeFile = "upgrade.json"
|
|
|
|
// Unified plugins directory
|
|
// Structure: ~/.lux/plugins/current/<vmid> (symlinks to actual binaries)
|
|
PluginsDir = "plugins"
|
|
CurrentPluginsDir = "current"
|
|
)
|
|
|
|
var (
|
|
LocalConfigDir = filepath.Join("local", "default")
|
|
LocalGenesisFile = "genesis.json"
|
|
)
|