validation

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset interface {
	GetBlock(ctx context.Context) (blocks.Block, error)
}

type Checker

type Checker interface {
	GetAssetForValidation(ctx context.Context, randomSeed int64) (Asset, error)
}

type Validation

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

func NewValidation

func NewValidation(c Checker, device *device.Device) *Validation

NewValidation creates a new Validation instance

func (*Validation) ExecuteValidation

func (v *Validation) ExecuteValidation(ctx context.Context, req *api.ValidateReq) error

ExecuteValidation performs the validation process

func (*Validation) SetFunc

func (v *Validation) SetFunc(fun func() uint32)

func (*Validation) StopValidation

func (v *Validation) StopValidation()

StopValidation sends a cancellation signal to stop the validation process

Jump to

Keyboard shortcuts

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