lite2: return height as 2nd return param in TrustedValidatorSet (#4479)

Closes #4473
This commit is contained in:
Anton Kaliaev
2020-02-27 16:10:01 +01:00
committed by GitHub
parent 6be0e13823
commit b5f6bfa4f9
3 changed files with 103 additions and 17 deletions

View File

@@ -28,7 +28,7 @@ type Client interface {
// get trusted headers & validators
TrustedHeader(height int64) (*types.SignedHeader, error)
TrustedValidatorSet(height int64) (*types.ValidatorSet, error)
TrustedValidatorSet(height int64) (valSet *types.ValidatorSet, heightUsed int64, err error)
LastTrustedHeight() (int64, error)
FirstTrustedHeight() (int64, error)