parentscheck

package
v1.1.1-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	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() *Checker

New validator which performs checks, which require known the parents

func (*Checker) Validate

func (v *Checker) Validate(e inter.EventI, parents inter.EventIs) error

Validate event

Jump to

Keyboard shortcuts

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