Versions in this module Expand all Collapse all v0 v0.31.12 Oct 9, 2022 v0.31.11 Oct 29, 2019 Changes in this version + const EvidenceChannel + func RegisterEvidenceMessages(cdc *amino.Codec) + func RegisterMockEvidences() + type EvidenceInfo struct + Committed bool + Evidence types.Evidence + Priority int64 + type EvidenceListMessage struct + Evidence []types.Evidence + func (m *EvidenceListMessage) String() string + func (m *EvidenceListMessage) ValidateBasic() error + type EvidenceMessage interface + ValidateBasic func() error + type EvidencePool struct + func NewEvidencePool(stateDB, evidenceDB dbm.DB) *EvidencePool + func (evpool *EvidencePool) AddEvidence(evidence types.Evidence) (err error) + func (evpool *EvidencePool) EvidenceFront() *clist.CElement + func (evpool *EvidencePool) EvidenceWaitChan() <-chan struct{} + func (evpool *EvidencePool) IsCommitted(evidence types.Evidence) bool + func (evpool *EvidencePool) MarkEvidenceAsCommitted(height int64, evidence []types.Evidence) + func (evpool *EvidencePool) PendingEvidence(maxNum int64) []types.Evidence + func (evpool *EvidencePool) PriorityEvidence() []types.Evidence + func (evpool *EvidencePool) SetLogger(l log.Logger) + func (evpool *EvidencePool) State() sm.State + func (evpool *EvidencePool) Update(block *types.Block, state sm.State) + type EvidenceReactor struct + func NewEvidenceReactor(evpool *EvidencePool) *EvidenceReactor + func (evR *EvidenceReactor) AddPeer(peer p2p.Peer) + func (evR *EvidenceReactor) GetChannels() []*p2p.ChannelDescriptor + func (evR *EvidenceReactor) Receive(chID byte, src p2p.Peer, msgBytes []byte) + func (evR *EvidenceReactor) SetEventBus(b *types.EventBus) + func (evR *EvidenceReactor) SetLogger(l log.Logger) + type EvidenceStore struct + func NewEvidenceStore(db dbm.DB) *EvidenceStore + func (store *EvidenceStore) AddNewEvidence(evidence types.Evidence, priority int64) bool + func (store *EvidenceStore) GetEvidenceInfo(height int64, hash []byte) EvidenceInfo + func (store *EvidenceStore) MarkEvidenceAsBroadcasted(evidence types.Evidence) + func (store *EvidenceStore) MarkEvidenceAsCommitted(evidence types.Evidence) + func (store *EvidenceStore) PendingEvidence(maxNum int64) (evidence []types.Evidence) + func (store *EvidenceStore) PriorityEvidence() (evidence []types.Evidence) + type PeerState interface + GetHeight func() int64