File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 1+ install :
2+ go install ./cometmock
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ import (
1818 "github.com/urfave/cli/v2"
1919)
2020
21+ const version = "v0.37.x"
22+
2123// GetMockPVsFromNodeHomes returns a list of MockPVs, created with the priv_validator_key's from the specified node homes
2224// We use MockPV because they do not do sanity checks that would e.g. prevent double signing
2325func GetMockPVsFromNodeHomes (nodeHomes []string ) []types.PrivValidator {
@@ -43,6 +45,16 @@ func main() {
4345 app := & cli.App {
4446 Name : "cometmock" ,
4547 HideHelpCommand : true ,
48+ Commands : []* cli.Command {
49+ {
50+ Name : "version" ,
51+ Usage : "Print the version of cometmock" ,
52+ Action : func (c * cli.Context ) error {
53+ fmt .Printf ("%s\n " , version )
54+ return nil
55+ },
56+ },
57+ },
4658 Flags : []cli.Flag {
4759 & cli.Int64Flag {
4860 Name : "block-time" ,
You can’t perform that action at this time.
0 commit comments