mirror of
https://github.com/luxfi/netrunner.git
synced 2026-07-27 00:04:23 +00:00
fix: LUX_MNEMONIC → MNEMONIC (generic env var)
This commit is contained in:
+4
-4
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user