Skip to content

Commit

Permalink
chore: Capitalize cmd and flag usage sentences and change BTC to Bitc…
Browse files Browse the repository at this point in the history
…oin in text (ethereum-optimism#19)
  • Loading branch information
gitferry authored Jul 19, 2023
1 parent aec19d2 commit 8b50fdd
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
6 changes: 4 additions & 2 deletions cmd/valcli/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@ package main

import (
"fmt"
"github.com/babylonchain/btc-validator/valcfg"

"github.com/jessevdk/go-flags"
"github.com/urfave/cli"

"github.com/babylonchain/btc-validator/valcfg"
)

var adminCommands = []cli.Command{
{
Name: "admin",
ShortName: "ad",
Usage: "Different utility and admin commands",
Usage: "Different utility and admin commands.",
Category: "Admin",
Subcommands: []cli.Command{
dumpCfgCommand,
Expand Down
2 changes: 1 addition & 1 deletion cmd/valcli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

func fatal(err error) {
fmt.Fprintf(os.Stderr, "[btc-staker] %v\n", err)
fmt.Fprintf(os.Stderr, "[btc-validator] %v\n", err)
os.Exit(1)
}

Expand Down
8 changes: 4 additions & 4 deletions cmd/valcli/validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,21 +192,21 @@ func registerVal(ctx *cli.Context) error {
var commitRandomList = cli.Command{
Name: "commit-random-list",
ShortName: "crl",
Usage: "generate a list of Schnorr random pair and commit the public rand for BTC validator",
Usage: "Generate a list of Schnorr random pair and commit the public rand for Bitcoin validator.",
Flags: []cli.Flag{
cli.StringFlag{
Name: valdDaemonAddressFlag,
Usage: "full address of the validator daemon in format tcp://<host>:<port>",
Usage: "Full address of the validator daemon in format tcp://<host>:<port>",
Value: defaultValdDaemonAddress,
},
cli.Int64Flag{
Name: randNumFlag,
Usage: "the number of public randomness you want to commit",
Usage: "The number of public randomness you want to commit",
Value: int64(defaultRandomNum),
},
cli.StringFlag{
Name: babylonPkFlag,
Usage: "commit random list for a specific BTC validator",
Usage: "Commit random list for a specific Bitcoin validator",
},
},
Action: commitRand,
Expand Down
2 changes: 1 addition & 1 deletion proto/validators.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/validators.proto
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ message CommitPubRandForAllRequest {
}

message CommitPubRandForAllResponse {
// hashes of the successful Babylon transaction
// hashes of the successful Babylon transactions
repeated bytes tx_hashes = 1;
}

Expand Down

0 comments on commit 8b50fdd

Please sign in to comment.