minor cleanup

This commit is contained in:
Ethan Buchman
2018-04-03 22:34:18 +03:00
parent 8813684040
commit 39ff4d22e9
2 changed files with 28 additions and 31 deletions
+3 -1
View File
@@ -177,7 +177,9 @@ type Header struct {
}
// Hash returns the hash of the header.
// Returns nil if ValidatorHash is missing.
// Returns nil if ValidatorHash is missing,
// since a Header is not valid unless there is
// a ValidaotrsHash (corresponding to the validator set).
func (h *Header) Hash() cmn.HexBytes {
if h == nil || len(h.ValidatorsHash) == 0 {
return nil