libcons

package
v1.15.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

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 (ConsensusChecker) VerifyEvidence

func (c ConsensusChecker) VerifyEvidence(ctx sdk.Context, evidences []*consensustypes.Evidence) (*Result, error)

type Result

type Result struct {
	Winner       any
	TotalShares  sdkmath.Int
	TotalVotes   sdkmath.Int
	Distribution map[string]sdkmath.Int
}

type SnapshotProvider

type SnapshotProvider func(context.Context) (*valsettypes.Snapshot, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL