Documentation ¶
Index ¶
- func NewDeadMock(chainID string) provider.Provider
- type Mock
- func (p *Mock) AddLightBlock(lb *types.LightBlock)
- func (p *Mock) ChainID() string
- func (p *Mock) Copy(id string) *Mock
- func (p *Mock) HasEvidence(ev types.Evidence) bool
- func (p *Mock) LightBlock(ctx context.Context, height int64) (*types.LightBlock, error)
- func (p *Mock) ReportEvidence(_ context.Context, ev types.Evidence) error
- func (p *Mock) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDeadMock ¶
NewDeadMock creates a mock provider that always errors.
Types ¶
type Mock ¶
type Mock struct {
// contains filtered or unexported fields
}
func New ¶
func New( chainID string, headers map[int64]*types.SignedHeader, vals map[int64]*types.ValidatorSet, ) *Mock
New creates a mock provider with the given set of headers and validator sets.
func (*Mock) AddLightBlock ¶
func (p *Mock) AddLightBlock(lb *types.LightBlock)
func (*Mock) LightBlock ¶
func (*Mock) ReportEvidence ¶
Click to show internal directories.
Click to hide internal directories.