Versions in this module Expand all Collapse all v1 v1.0.1 Sep 18, 2024 v1.0.0 May 17, 2024 Changes in this version + const EvidenceChannel + const MetricsSubsystem + func GetChannelDescriptor() *p2p.ChannelDescriptor + func VerifyDuplicateVote(e *types.DuplicateVoteEvidence, chainID string, valSet *types.ValidatorSet) error + func VerifyLightClientAttack(e *types.LightClientAttackEvidence, ...) error + type BlockStore interface + Height func() int64 + LoadBlockCommit func(height int64) *types.Commit + LoadBlockMeta func(height int64) *types.BlockMeta + type Metrics struct + NumEvidence metrics.Gauge + func NopMetrics() *Metrics + func PrometheusMetrics(namespace string, labelsAndValues ...string) *Metrics + type Pool struct + Metrics *Metrics + func NewPool(logger log.Logger, evidenceDB dbm.DB, stateStore sm.Store, ...) *Pool + func (evpool *Pool) AddEvidence(ctx context.Context, ev types.Evidence) error + func (evpool *Pool) CheckEvidence(ctx context.Context, evList types.EvidenceList) error + func (evpool *Pool) Close() error + func (evpool *Pool) EvidenceFront() *clist.CElement + func (evpool *Pool) EvidenceWaitChan() <-chan struct{} + func (evpool *Pool) PendingEvidence(maxBytes int64) ([]types.Evidence, int64) + func (evpool *Pool) ReportConflictingVotes(voteA, voteB *types.Vote) + func (evpool *Pool) Size() uint32 + func (evpool *Pool) Start(state sm.State) error + func (evpool *Pool) State() sm.State + func (evpool *Pool) Update(ctx context.Context, state sm.State, ev types.EvidenceList) + type Reactor struct + func NewReactor(logger log.Logger, peerEvents p2p.PeerEventSubscriber, evpool *Pool) *Reactor + func (r *Reactor) OnStart(ctx context.Context) error + func (r *Reactor) OnStop() + func (r *Reactor) SetChannel(ch *p2p.Channel)