txvalidation

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DB     worldstate.DB
	Logger *logger.SugarLogger
}

type ConfigTxValidator added in v0.2.2

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

func (*ConfigTxValidator) Validate added in v0.2.2

type Validator

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

Validator validates the each transaction read set present in a block against the committed version to ensure the requested isolation level

func NewValidator

func NewValidator(conf *Config) *Validator

NewValidator creates a new Validator

func (*Validator) ConfigValidator added in v0.2.2

func (v *Validator) ConfigValidator() *ConfigTxValidator

ConfigValidator provides a pointer to the internal validator that verifies config transactions.

func (*Validator) ValidateBlock

func (v *Validator) ValidateBlock(block *types.Block) ([]*types.ValidationInfo, error)

ValidateBlock validates each transaction present in the block to ensure the request isolation level

Jump to

Keyboard shortcuts

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