|
@ -39,6 +39,7 @@ type ( |
|
|
|
|
|
|
|
|
ErrNoValSetForHeight struct { |
|
|
ErrNoValSetForHeight struct { |
|
|
Height int64 |
|
|
Height int64 |
|
|
|
|
|
Err error |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
ErrNoConsensusParamsForHeight struct { |
|
|
ErrNoConsensusParamsForHeight struct { |
|
@ -89,9 +90,14 @@ func (e ErrStateMismatch) Error() string { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (e ErrNoValSetForHeight) Error() string { |
|
|
func (e ErrNoValSetForHeight) Error() string { |
|
|
return fmt.Sprintf("could not find validator set for height #%d", e.Height) |
|
|
|
|
|
|
|
|
if e.Err == nil { |
|
|
|
|
|
return fmt.Sprintf("could not find validator set for height #%d", e.Height) |
|
|
|
|
|
} |
|
|
|
|
|
return fmt.Sprintf("could not find validator set for height #%d: %s", e.Height, e.Err.Error()) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (e ErrNoValSetForHeight) Unwrap() error { return e.Err } |
|
|
|
|
|
|
|
|
func (e ErrNoConsensusParamsForHeight) Error() string { |
|
|
func (e ErrNoConsensusParamsForHeight) Error() string { |
|
|
return fmt.Sprintf("could not find consensus params for height #%d", e.Height) |
|
|
return fmt.Sprintf("could not find consensus params for height #%d", e.Height) |
|
|
} |
|
|
} |
|
|