mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-09 06:33:16 +00:00
* lite2: move AutoClient into Client Most of the users will want auto update feature, so it makes sense to move it into the Client itself, rather than having a separate abstraction (it makes the code cleaner, but introduces an extra thing the user will need to learn). Also, add `FirstTrustedHeight` func to Client to get first trusted height. * fix db store tests * separate examples for auto and manual clients * AutoUpdate tries to update to latest state NOT 1 header at a time * fix errors * lite2: make Logger an option remove SetLogger func * fix lite cmd * lite2: make concurrency assumptions explicit * fixes after my own review * no need for nextHeightFn sequence func will download intermediate headers * correct comment
13 lines
366 B
Go
13 lines
366 B
Go
package provider
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
// ErrSignedHeaderNotFound is returned when a provider can't find the
|
|
// requested header.
|
|
ErrSignedHeaderNotFound = errors.New("signed header not found")
|
|
// ErrValidatorSetNotFound is returned when a provider can't find the
|
|
// requested validator set.
|
|
ErrValidatorSetNotFound = errors.New("validator set not found")
|
|
)
|