constants

package
v1.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Copyright (C) 2021-2025, Lux Industries Inc. All rights reserved. SPDX-License-Identifier: BSD-3-Clause

Index

Constants

View Source
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"
)

Variables

View Source
var (
	LocalConfigDir   = filepath.Join("local", "default")
	LocalGenesisFile = "genesis.json"
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL