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
Click to show internal directories.
Click to hide internal directories.