From b66d98757d2b97bbbff6431aaa1876dc4db2e003 Mon Sep 17 00:00:00 2001 From: Aleksandr Bezobchuk Date: Fri, 9 Nov 2018 07:40:26 -0500 Subject: [PATCH 1/3] Use consensus address bech32 prefix --- server/tm_cmds.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/tm_cmds.go b/server/tm_cmds.go index 82652bdec578..8857c84f090e 100644 --- a/server/tm_cmds.go +++ b/server/tm_cmds.go @@ -67,13 +67,13 @@ func ShowAddressCmd(ctx *Context) *cobra.Command { RunE: func(cmd *cobra.Command, args []string) error { cfg := ctx.Config privValidator := pvm.LoadOrGenFilePV(cfg.PrivValidatorFile()) - valAddr := (sdk.ValAddress)(privValidator.Address) + valConsAddr := (sdk.ConsAddress)(privValidator.Address) if viper.GetBool(client.FlagJson) { - return printlnJSON(valAddr) + return printlnJSON(valConsAddr) } - fmt.Println(valAddr.String()) + fmt.Println(valConsAddr.String()) return nil }, } From 4391f160785d7939727cd265ae4732dc8b12633e Mon Sep 17 00:00:00 2001 From: Aleksandr Bezobchuk Date: Fri, 9 Nov 2018 07:41:56 -0500 Subject: [PATCH 2/3] Add penging log entry --- PENDING.md | 1 + 1 file changed, 1 insertion(+) diff --git a/PENDING.md b/PENDING.md index 4d87301f0d5b..75162cdf0ee3 100644 --- a/PENDING.md +++ b/PENDING.md @@ -46,6 +46,7 @@ BUG FIXES * Gaia CLI (`gaiacli`) * Gaia + * \#2723 Use `cosmosvalcons` Bech32 prefix in `tendermint show-address` * SDK From 94c58b6894d74a312001987841995dbe2397a493 Mon Sep 17 00:00:00 2001 From: Aleksandr Bezobchuk Date: Fri, 9 Nov 2018 07:45:08 -0500 Subject: [PATCH 3/3] Update show-address CLI description --- server/tm_cmds.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/tm_cmds.go b/server/tm_cmds.go index 8857c84f090e..5aeacf92f380 100644 --- a/server/tm_cmds.go +++ b/server/tm_cmds.go @@ -63,7 +63,7 @@ func ShowValidatorCmd(ctx *Context) *cobra.Command { func ShowAddressCmd(ctx *Context) *cobra.Command { cmd := &cobra.Command{ Use: "show-address", - Short: "Shows this node's tendermint validator address", + Short: "Shows this node's tendermint validator consensus address", RunE: func(cmd *cobra.Command, args []string) error { cfg := ctx.Config privValidator := pvm.LoadOrGenFilePV(cfg.PrivValidatorFile())