Documentation ¶
Index ¶
- func NewDeadMock(chainID string) provider.Provider
- type Mock
- func (p *Mock) ChainID() string
- func (p *Mock) HasEvidence(ev types.Evidence) bool
- func (p *Mock) ReportEvidence(ev types.Evidence) error
- func (p *Mock) SignedHeader(height int64) (*types.SignedHeader, error)
- func (p *Mock) String() string
- func (p *Mock) ValidatorSet(height int64) (*types.ValidatorSet, error)
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) SignedHeader ¶
func (p *Mock) SignedHeader(height int64) (*types.SignedHeader, error)
func (*Mock) ValidatorSet ¶
func (p *Mock) ValidatorSet(height int64) (*types.ValidatorSet, error)
Click to show internal directories.
Click to hide internal directories.