statebasedval

package
v0.0.0-...-770c0f4 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCount

func GetCount() int

func PrintRate

func PrintRate()

func RecordTx

func RecordTx(isValid bool)

Types

type Validator

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

Validator validates a tx against the latest committed state and preceding valid transactions with in the same block

func NewValidator

func NewValidator(db privacyenabledstate.DB) *Validator

NewValidator constructs StateValidator

func (*Validator) ValidateAndPrepareBatch

func (v *Validator) ValidateAndPrepareBatch(block *internal.Block, doMVCCValidation bool) (*internal.PubAndHashUpdates, error)

ValidateAndPrepareBatch implements method in Validator interface

Jump to

Keyboard shortcuts

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