Skip to content

Commit

Permalink
fix: text fixes for start
Browse files Browse the repository at this point in the history
  • Loading branch information
frozeman committed May 14, 2023
1 parent a2724b1 commit 750844a
Show file tree
Hide file tree
Showing 5 changed files with 1,223 additions and 18 deletions.
2 changes: 1 addition & 1 deletion cmd/lukso/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func statClient(dependencyName, layer string) func(*cli.Context) error {
dependencyName = "none"
}

log.Warnf("PID None - %s (%s): Stopped 🔘", layer, dependencyName)
log.Warnf("PID ----- - %s (%s): Stopped 🔘", layer, dependencyName)

return nil
}
Expand Down
10 changes: 5 additions & 5 deletions cmd/lukso/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,34 +159,34 @@ REPO: https://github.com/lukso-network/tools-lukso-cli
},
{
Name: "stop",
Usage: "Stops all or specific clients that are currently running",
Usage: "Stops all or specific client(s) that are currently running",
Action: stopClients,
Flags: stopFlags,
HideHelpCommand: true,
},
{
Name: "logs",
Usage: "Listens to and logs all events from a specific client in the current terminal window",
Usage: "Streams all logs from a specific client in the current terminal window",
Action: logClients,
HideHelpCommand: true,
Subcommands: []*cli.Command{
{
Name: "execution",
Usage: "Outputs selected execution client's logs",
Usage: "Outputs selected execution client's logs, add the network flag, if not mainnet",
Flags: gethLogsFlags,
Action: selectNetworkFor(logLayer(executionLayer)),
HideHelpCommand: true,
},
{
Name: "consensus",
Usage: "Outputs selected consensus client's logs",
Usage: "Outputs selected consensus client's logs, add the network flag, if not mainnet",
Flags: prysmLogsFlags,
Action: selectNetworkFor(logLayer(consensusLayer)),
HideHelpCommand: true,
},
{
Name: "validator",
Usage: "Outputs selected validator client's logs",
Usage: "Outputs selected validator client's logs, add the network flag, if not mainnet",
Flags: validatorLogsFlags,
Action: selectNetworkFor(logLayer(validatorLayer)), // named as a layer for sake of
HideHelpCommand: true,
Expand Down
10 changes: 8 additions & 2 deletions cmd/lukso/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func startClients(ctx *cli.Context) error {
return cli.Exit(fmt.Sprintf("❌ There was an error while starting validator: %v", err), 1)
}

log.Info("🎉 Clients have been started. Your node is now running 🆙.")
log.Info("🎉 Clients have been started. Your node is now 🆙.")

return nil
}
Expand Down Expand Up @@ -305,9 +305,15 @@ func initClient(client string, ctx *cli.Context) (err error) {
return errors.New("❌ Genesis JSON not found")
}

message := `Choose your preferred initial LYX supply:
message := `Choose your preferred initial LYX supply!
If you are a Genesis Validator, we recommend to choose the supply, which the majority of the Genesis Validators would choose,
to prevent your node from running on a network that can not finalize due to missing validators!
🗳️ See the voting results at https://deposit.mainnet.lukso.network
For more information read:
👉 https://medium.com/lukso/genesis-validators-deposit-smart-contract-freeze-and-testnet-launch-c5f7b568b1fc
Which initial LYX supply do you choose?
1: 35M LYX
2: 42M LYX
3: 100M LYX
Expand Down
12 changes: 2 additions & 10 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.19
require (
github.com/ethereum/go-ethereum v1.11.4
github.com/sirupsen/logrus v1.9.0
github.com/spf13/viper v1.4.0
github.com/spf13/viper v1.8.1
github.com/urfave/cli/v2 v2.23.5
golang.org/x/crypto v0.7.0
)
Expand All @@ -20,22 +20,14 @@ require (
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/go-stack/stack v1.8.1 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/gorilla/websocket v1.4.2 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/magiconair/properties v1.8.0 // indirect
github.com/mitchellh/mapstructure v1.4.1 // indirect
github.com/pelletier/go-toml v1.2.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
github.com/spf13/afero v1.1.2 // indirect
github.com/spf13/cast v1.3.0 // indirect
github.com/spf13/jwalterweatherman v1.0.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/tklauser/go-sysconf v0.3.5 // indirect
github.com/tklauser/numcpus v0.2.2 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
golang.org/x/sys v0.6.0 // indirect
golang.org/x/term v0.6.0 // indirect
golang.org/x/term v0.6.0
golang.org/x/text v0.8.0 // indirect
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
Expand Down
Loading

0 comments on commit 750844a

Please sign in to comment.