dataValidators

package
v1.0.30 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNilHeaderValidator

func NewNilHeaderValidator() (*nilHeaderValidator, error)

NewNilHeaderValidator creates a new nil header handler validator instance

func NewNilTxValidator added in v1.0.12

func NewNilTxValidator() (*nilTxValidator, error)

NewNilTxValidator creates a new nil tx handler validator instance

Types

type TxValidator added in v1.0.16

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

TxValidator represents a tx handler validator that doesn't check the validity of provided txHandler

func NewTxValidator

func NewTxValidator(
	accounts state.AccountsAdapter,
	shardCoordinator sharding.Coordinator,
	maxNonceDeltaAllowed int,
) (*TxValidator, error)

NewTxValidator creates a new nil tx handler validator instance

func (*TxValidator) IsInterfaceNil added in v1.0.16

func (tv *TxValidator) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*TxValidator) IsTxValidForProcessing added in v1.0.16

func (tv *TxValidator) IsTxValidForProcessing(interceptedTx process.TxValidatorHandler) bool

IsTxValidForProcessing will filter transactions that needs to be added in pools

func (*TxValidator) NumRejectedTxs added in v1.0.16

func (tv *TxValidator) NumRejectedTxs() uint64

NumRejectedTxs will return number of rejected transaction

Jump to

Keyboard shortcuts

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