Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ArbitraryTaskData ¶
type ArbitraryTaskData interface { GetEvents() inter.Events GetResult() []error GetOnValidatedFn() OnValidatedFn }
ArbitraryTaskData is an interface that represents task data getters
type Checker ¶
type Checker struct {
// contains filtered or unexported fields
}
Check which require only parents list + current epoch info
func New ¶
func New(config *lachesis.DagConfig, reader DagReader, txSigner types.Signer, numOfThreads int) *Checker
New validator which performs heavy checks, related to signatures validation and Merkle tree validation
func NewDefault ¶
NewDefault uses N-1 threads
func (*Checker) Enqueue ¶
func (v *Checker) Enqueue(events inter.Events, onValidated OnValidatedFn) error
func (*Checker) Overloaded ¶
type OnValidatedFn ¶
type OnValidatedFn func(ArbitraryTaskData)
OnValidatedFn is a callback type for notifying about validation result.
type TaskData ¶
type TaskData struct { Events inter.Events // events to validate Result []error // resulting errors of events, nil if ok // contains filtered or unexported fields }
TaskData is a struct that represents an input data for a check. Used also to validate events
func (*TaskData) GetOnValidatedFn ¶
func (t *TaskData) GetOnValidatedFn() OnValidatedFn
GetOnValidatedFn is a getter function for onValidated callback
Click to show internal directories.
Click to hide internal directories.