Versions in this module Expand all Collapse all v0 v0.0.1 Jul 22, 2020 Changes in this version + const MULTI_PEER_BISECTION_PATH + const SINGLE_PEER_BISECTION_PATH + const SINGLE_STEP_SEQ_PATH + const SINGLE_STEP_SKIPPING_PATH + const TRUSTING_PERIOD + func GenerateManyHeaderBisectionCases(jsonValList string) + func GenerateSingleStepSequentialCases(jsonValList string) + func GenerateSingleStepSkippingCases(jsonValList string) + func GenerateValList(numVals int, votingPower int64) + func NewState(chainID string, valSet *types.ValidatorSet, nextValSet *types.ValidatorSet) st.State + func ReadFile(file string) []byte + type Initial struct + NextValidatorSet types.ValidatorSet + Now time.Time + SignedHeader types.SignedHeader + TrustingPeriod time.Duration + type LiteBlock struct + NextValidatorSet types.ValidatorSet + SignedHeader types.SignedHeader + ValidatorSet types.ValidatorSet + type MockProvider struct + ChainId string + LiteBlocks []LiteBlock + func (mp MockProvider) ChainID() string + func (mp MockProvider) Copy() MockProvider + func (mp MockProvider) New(chainID string, liteBlocks []LiteBlock) MockProvider + func (mp MockProvider) SignedHeader(height int64) (*types.SignedHeader, error) + func (mp MockProvider) ValidatorSet(height int64) (*types.ValidatorSet, error) + type TestBisection struct + Description string + ExpectedBisections int32 + ExpectedOutput string + HeightToVerify int64 + Now time.Time + Primary MockProvider + TrustOptions TrustOptions + Witnesses []provider.Provider + type TestCase struct + Description string + ExpectedOutput string + Initial Initial + Input []LiteBlock + type TrustOptions struct + Hash tmbytes.HexBytes + Height int64 + Period time.Duration + TrustLevel tmmath.Fraction + type ValList struct + PrivVals types.PrivValidatorsByAddress + Validators []*types.Validator + func GetValList(file string) ValList + func (valList ValList) Copy() (vl ValList) + type ValSetChanges []ValList