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) (*runtime5.ConsensusFault, error)
Checks validity of the submitted consensus fault with the two block headers needed to prove the fault and an optional extra one to check common ancestry (as needed). Note that the blocks are ordered: the method requires a.Epoch() <= b.Epoch().
Click to show internal directories.
Click to hide internal directories.