fixes from review

This commit is contained in:
Ethan Buchman
2017-05-15 12:59:44 -04:00
parent d82c7edf3a
commit 5dabeffb35
4 changed files with 11 additions and 9 deletions
+5 -1
View File
@@ -5,6 +5,7 @@ import (
"encoding/json"
"github.com/tendermint/go-wire/data"
cmn "github.com/tendermint/tmlibs/common"
)
// validators implements sort
@@ -38,6 +39,9 @@ func ValidatorsString(vs Validators) string {
for i, v := range vs {
s[i] = validatorPretty{v.PubKey, v.Power}
}
b, _ := json.Marshal(s)
b, err := json.Marshal(s)
if err != nil {
cmn.PanicSanity(err.Error())
}
return string(b)
}