ethutils

package
v3.0.0-alpha5.0...-c974331 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNilBlobHashes       = errors.New("nil blob hashes array")
	ErrMaxBlobGasUsed      = errors.New("max blob gas used")
	ErrMismatchBlobHashes  = errors.New("mismatch blob hashes")
	ErrInvalidVersiondHash = errors.New("invalid blob versioned hash, must start with VERSIONED_HASH_VERSION_KZG")
)

Functions

func IsLocalBlock

func IsLocalBlock(engine consensus.Engine, etherbase libcommon.Address, txPoolLocals []libcommon.Address, header *types.Header) bool

IsLocalBlock checks whether the specified block is mined by local miner accounts.

We regard two types of accounts as local miner account: etherbase and accounts specified via `txpool.locals` flag.

func MarshalReceipt

func MarshalReceipt(
	receipt *types.Receipt,
	txn types.Transaction,
	chainConfig *chain.Config,
	header *types.Header,
	txnHash common.Hash,
	signed bool,
) map[string]interface{}

func ValidateBlobs

func ValidateBlobs(blobGasUsed, maxBlobsGas, maxBlobsPerBlock uint64, expectedBlobHashes []libcommon.Hash, transactions *[]types.Transaction) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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