parentscheck

package
v1.0.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWrongSeq        = errors.New("event has wrong sequence time")
	ErrWrongLamport    = errors.New("event has wrong Lamport time")
	ErrDoubleParents   = errors.New("event has double parents")
	ErrWrongSelfParent = errors.New("event is missing self-parent")
	ErrPastTime        = errors.New("event has lower claimed time than self-parent")
)

Functions

This section is empty.

Types

type Checker

type Checker struct {
	// contains filtered or unexported fields
}

Checker which require only parents list + current epoch info

func New

func New(config *lachesis.DagConfig) *Checker

New validator which performs checks, which require known the parents

func (*Checker) Validate

func (v *Checker) Validate(e *inter.Event, parents []*inter.EventHeaderData) error

Validate event

Jump to

Keyboard shortcuts

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