Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsensusFaultChecker ¶
type ConsensusFaultChecker struct {
// contains filtered or unexported fields
}
Checks the validity of reported consensus faults.
func NewFaultChecker ¶
func NewFaultChecker(chain chainReader, fork fork.IFork) *ConsensusFaultChecker
func (*ConsensusFaultChecker) VerifyConsensusFault ¶
func (s *ConsensusFaultChecker) VerifyConsensusFault(ctx context.Context, h1, h2, extra []byte, view FaultStateView) (*runtime2.ConsensusFault, error)
Checks the validity of a consensus fault reported by serialized block headers h1, h2, and optional common-ancestor witness h3.
Click to show internal directories.
Click to hide internal directories.