Documentation ¶
Index ¶
Constants ¶
View Source
const ErrConsensusNotAchieved = liberr.Error("evm: consensus not achieved")
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsensusChecker ¶
type ConsensusChecker struct {
// contains filtered or unexported fields
}
func New ¶
func New(p SnapshotProvider, cdc codec.BinaryCodec) *ConsensusChecker
func (ConsensusChecker) VerifyEvidence ¶
func (c ConsensusChecker) VerifyEvidence(ctx sdk.Context, evidences []*consensustypes.Evidence) (*Result, error)
type SnapshotProvider ¶
type SnapshotProvider func(context.Context) (*valsettypes.Snapshot, error)
Click to show internal directories.
Click to hide internal directories.