txlistvalidator

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TxListValidator

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

TxListValidator is responsible for validating the transactions list in a TaikoL1.proposeBlock transaction.

func NewTxListValidator

func NewTxListValidator(
	blockMaxGasLimit uint64,
	maxBytesPerTxList uint64,
	chainID *big.Int,
) *TxListValidator

NewTxListValidator creates a new TxListValidator instance based on giving configurations.

func (*TxListValidator) ValidateTxList

func (v *TxListValidator) ValidateTxList(
	blockID *big.Int,
	txListBytes []byte,
	blobUsed bool,
) (isValid bool)

ValidateTxList checks whether the transactions list in the TaikoL1.proposeBlock transaction's input data is valid.

Jump to

Keyboard shortcuts

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