3291 follow-up (#3323)

* changelog: use issue number instead of PR number

* follow up to #3291

- rpc/test/helpers.go add StopTendermint(node) func
- remove ensureDir(filepath.Dir(walFile), 0700)
- mempool/mempool_test.go add type cleanupFunc func()

* cmd/show_validator: wrap err to make it more clear
This commit is contained in:
Anton Kaliaev
2019-02-18 13:23:40 +04:00
committed by GitHub
parent 59cc6d36c9
commit 8283ca7ddb
12 changed files with 45 additions and 35 deletions

View File

@@ -3,6 +3,7 @@ package commands
import (
"fmt"
"github.com/pkg/errors"
"github.com/spf13/cobra"
cmn "github.com/tendermint/tendermint/libs/common"
@@ -25,7 +26,7 @@ func showValidator(cmd *cobra.Command, args []string) error {
pv := privval.LoadFilePV(keyFilePath, config.PrivValidatorStateFile())
bz, err := cdc.MarshalJSON(pv.GetPubKey())
if err != nil {
return err
return errors.Wrap(err, "failed to marshal private validator pubkey")
}
fmt.Println(string(bz))