Bump Tendermint v0.33.4 (#6055)
* Bump go.{mod,sum}
* Update APIs from Tendermint
* Add max clock drift to client state
* Test updates
* Update APIs from Tendermint
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
This commit is contained in:
co-authored by
Federico Kunze
parent
550c3e9ef0
commit
72a2dae3db
+6
-4
@@ -42,12 +42,14 @@ func ShowValidatorCmd(ctx *Context) *cobra.Command {
|
||||
Use: "show-validator",
|
||||
Short: "Show this node's tendermint validator info",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
|
||||
cfg := ctx.Config
|
||||
UpgradeOldPrivValFile(cfg)
|
||||
privValidator := pvm.LoadOrGenFilePV(
|
||||
cfg.PrivValidatorKeyFile(), cfg.PrivValidatorStateFile())
|
||||
valPubKey := privValidator.GetPubKey()
|
||||
|
||||
privValidator := pvm.LoadOrGenFilePV(cfg.PrivValidatorKeyFile(), cfg.PrivValidatorStateFile())
|
||||
valPubKey, err := privValidator.GetPubKey()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if viper.GetString(cli.OutputFlag) == "json" {
|
||||
return printlnJSON(valPubKey)
|
||||
|
||||
Reference in New Issue
Block a user