fix: LUX_MNEMONIC → MNEMONIC (generic env var)

This commit is contained in:
Hanzo AI
2026-04-01 15:18:26 -07:00
parent dab6ea2adf
commit 36f2919975
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -1,4 +1,4 @@
// genkeys generates mainnet validator keys from LUX_MNEMONIC
// genkeys generates mainnet validator keys from MNEMONIC
package main
import (
@@ -22,9 +22,9 @@ type ValidatorBackup struct {
}
func main() {
mnemonic := os.Getenv("LUX_MNEMONIC")
mnemonic := os.Getenv("MNEMONIC")
if mnemonic == "" {
fmt.Println("ERROR: LUX_MNEMONIC not set")
fmt.Println("ERROR: MNEMONIC not set")
os.Exit(1)
}
@@ -35,7 +35,7 @@ func main() {
keysDir = filepath.Join(home, ".lux", "keys")
}
fmt.Printf("=== Generating 5 Mainnet Validators from LUX_MNEMONIC ===\n")
fmt.Printf("=== Generating 5 Mainnet Validators from MNEMONIC ===\n")
fmt.Printf("Keys Directory: %s\n\n", keysDir)
ks := keys.NewKeyStore(keysDir)
+2 -2
View File
@@ -10,9 +10,9 @@ import (
)
func main() {
mnemonic := os.Getenv("LUX_MNEMONIC")
mnemonic := os.Getenv("MNEMONIC")
if mnemonic == "" {
fmt.Println("LUX_MNEMONIC not set")
fmt.Println("MNEMONIC not set")
os.Exit(1)
}