mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-07 13:55:17 +00:00
Before we were storing trustedHeader (height=1) and trustedNextVals (height=2). After this change, we will be storing trustedHeader (height=1) and trustedVals (height=1). This a) simplifies the code b) fixes #4399 inconsistent pairing issue c) gives a relayer access to the current validator set #4470. The only downside is more jumps during bisection. If validator set changes between trustedHeader and the next header (by 2/3 or more), the light client will be forced to download the next header and check that 2/3+ signed the transition. But we don't expect validator set change too much and too often, so it's an acceptable compromise. Closes #4470 and #4399
14 lines
364 B
Go
14 lines
364 B
Go
package store
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
// ErrSignedHeaderNotFound is returned when a store does not have the
|
|
// requested header.
|
|
ErrSignedHeaderNotFound = errors.New("signed header not found")
|
|
|
|
// ErrValidatorSetNotFound is returned when a store does not have the
|
|
// requested validator set.
|
|
ErrValidatorSetNotFound = errors.New("validator set not found")
|
|
)
|