rpc: fix getHeight

This commit is contained in:
Ethan Buchman
2017-12-26 20:08:25 -05:00
parent bfcb40bf6b
commit 336c2f4fe1
2 changed files with 16 additions and 14 deletions

View File

@ -43,7 +43,8 @@ import (
// }
// ```
func Validators(heightPtr *int64) (*ctypes.ResultValidators, error) {
height, _, err := getHeight(blockStore, heightPtr)
storeHeight := blockStore.Height()
height, err := getHeight(storeHeight, heightPtr)
if err != nil {
return nil, err
}