Merge PR #4895: Lite Client Query Height Fix

This commit is contained in:
Alexander Bezobchuk
2019-08-13 09:13:34 -04:00
committed by GitHub
parent 436f440e8f
commit 46c98d396d
3 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -402,7 +402,7 @@ func (rs *Store) Query(req abci.RequestQuery) abci.ResponseQuery {
}
if res.Proof == nil || len(res.Proof.Ops) == 0 {
return errors.ErrInternal("substore proof was nil/empty when it should never be").QueryResult()
return errors.ErrInternal("proof is unexpectedly empty; ensure height has not been pruned").QueryResult()
}
commitInfo, errMsg := getCommitInfo(rs.db, res.Height)