From bb1a5d5dbc8e1fdc14504fa07f449c7a2515cded Mon Sep 17 00:00:00 2001 From: Gustavo Chain Date: Thu, 29 Aug 2019 12:40:20 +0200 Subject: [PATCH 1/2] go-kosu: print pubkey correctly --- packages/go-kosu/abci/node.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/go-kosu/abci/node.go b/packages/go-kosu/abci/node.go index bb48dce7..731d23d6 100644 --- a/packages/go-kosu/abci/node.go +++ b/packages/go-kosu/abci/node.go @@ -1,13 +1,14 @@ package abci import ( - "encoding/hex" + "fmt" "io" "io/ioutil" "os" "github.com/tendermint/tendermint/cmd/tendermint/commands" "github.com/tendermint/tendermint/config" + "github.com/tendermint/tendermint/crypto/ed25519" tmflags "github.com/tendermint/tendermint/libs/cli/flags" log "github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/node" @@ -73,15 +74,16 @@ func ShowNodeInfo(cfg *config.Config) (*NodeInfo, error) { return nil, err } - priv := privval.LoadFilePV( + priv := privval.LoadFilePVEmptyState( cfg.PrivValidatorKeyFile(), cfg.PrivValidatorStateFile(), ).Key + key := priv.PubKey.(ed25519.PubKeyEd25519) return &NodeInfo{ PeerID: string(nodeKey.ID()), NodeID: priv.Address.String(), - PublicKey: hex.EncodeToString(priv.PubKey.Bytes()), + PublicKey: fmt.Sprintf("%X", key[:]), Moniker: cfg.Moniker, }, nil } From 3b60f10fe1f4af3fa6d6cb4fbab876725c56d43e Mon Sep 17 00:00:00 2001 From: Henry Harder Date: Thu, 29 Aug 2019 09:39:26 -0700 Subject: [PATCH 2/2] go-kosu: bump --- packages/go-kosu/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/go-kosu/package.json b/packages/go-kosu/package.json index fd1abd78..3dea869e 100644 --- a/packages/go-kosu/package.json +++ b/packages/go-kosu/package.json @@ -1,7 +1,7 @@ { "name": "@kosu/go-kosu", "private": true, - "version": "0.1.0-beta.2", + "version": "0.1.0-beta.3", "description": "Development and CI docker images and supporting scripts for Kosu.", "repository": "https://github.com/ParadigmFoundation/kosu-monorepo/blob/master/packages/go-kosu", "license": "MIT",