diff --git a/README.md b/README.md index 9874585..1d258d7 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ A command-line tool for managing common tasks in Ethereum 2. `ethdo` is a standard Go program which can be installed with: ```sh -GO111MODULE=on go get github.com/wealdtech/ethdo@v1.2.1 +GO111MODULE=on go get github.com/wealdtech/ethdo@v1.2.3 ``` ## Usage diff --git a/cmd/chaininfo.go b/cmd/chaininfo.go index 989049f..f6a4b66 100644 --- a/cmd/chaininfo.go +++ b/cmd/chaininfo.go @@ -43,10 +43,14 @@ In quiet mode this will return 0 if the chain information can be obtained, other os.Exit(_exit_success) } + for k, v := range config { + fmt.Printf("%v => %v\n", k, v) + } fmt.Printf("Genesis time:\t\t%s\n", genesisTime.Format(time.UnixDate)) slot := timestampToSlot(genesisTime.Unix(), time.Now().Unix(), config["SecondsPerSlot"].(uint64)) fmt.Printf("Current slot:\t\t%d\n", slot) fmt.Printf("Current epoch:\t\t%d\n", slot/int64(config["SlotsPerEpoch"].(uint64))) + outputIf(verbose, fmt.Sprintf("Genesis fork version:\t%0x", config["GenesisForkVersion"].([]byte))) outputIf(verbose, fmt.Sprintf("Genesis timestamp:\t%v", genesisTime.Unix())) outputIf(verbose, fmt.Sprintf("Seconds per slot:\t%v", config["SecondsPerSlot"].(uint64))) outputIf(verbose, fmt.Sprintf("Slots per epoch:\t%v", config["SlotsPerEpoch"].(uint64))) diff --git a/cmd/version.go b/cmd/version.go index a67e2bc..04df02d 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -30,7 +30,7 @@ var versionCmd = &cobra.Command{ ethdo version.`, Run: func(cmd *cobra.Command, args []string) { - fmt.Println("1.2.2") + fmt.Println("1.2.3") if viper.GetBool("verbose") { buildInfo, ok := dbg.ReadBuildInfo() if ok {