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 Checkable ¶
type Checkable interface {
GetValAddress() sdk.ValAddress
}
type ConsensusChecker ¶
type ConsensusChecker struct {
// contains filtered or unexported fields
}
func New ¶
func New(p SnapshotProvider, cdc codec.BinaryCodec) *ConsensusChecker
func (ConsensusChecker) VerifyEvidence ¶
func (ConsensusChecker) VerifyGasEstimates ¶
func (c ConsensusChecker) VerifyGasEstimates(ctx context.Context, p liblog.LogProvider, estimates []GasEstimate) (uint64, error)
type Evidence ¶
type Evidence interface { Checkable GetProof() *codectypes.Any }
type GasEstimate ¶
type SnapshotProvider ¶
type SnapshotProvider func(context.Context) (*valsettypes.Snapshot, error)
Click to show internal directories.
Click to hide internal directories.