receipts

package
v1.9.7-0...-42bb602 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: LGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BorGenerator

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

func NewBorGenerator

func NewBorGenerator(blockReader services.FullBlockReader,
	engine consensus.EngineReader) *BorGenerator

func (*BorGenerator) GenerateBorLogs

func (g *BorGenerator) GenerateBorLogs(ctx context.Context, msgs []*types.Message, txNumsReader rawdbv3.TxNumsReader, tx kv.TemporalTx, header *types.Header, chainConfig *chain.Config, txIndex, logIndex int) (types.Logs, error)

func (*BorGenerator) GenerateBorReceipt

func (g *BorGenerator) GenerateBorReceipt(ctx context.Context, tx kv.TemporalTx, block *types.Block,
	msgs []*types.Message, chainConfig *chain.Config) (*types.Receipt, error)

GenerateBorReceipt generates the receipt for state sync transactions of a block

type Generator

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

func NewGenerator

func NewGenerator(blockReader services.FullBlockReader, engine consensus.EngineReader) *Generator

func (*Generator) GetCachedReceipt

func (g *Generator) GetCachedReceipt(ctx context.Context, hash common.Hash) (*types.Receipt, bool)

func (*Generator) GetCachedReceipts

func (g *Generator) GetCachedReceipts(ctx context.Context, blockHash common.Hash) (types.Receipts, bool)

func (*Generator) GetReceipt

func (g *Generator) GetReceipt(ctx context.Context, cfg *chain.Config, tx kv.TemporalTx, header *types.Header, txn types.Transaction, index int, txNum uint64) (*types.Receipt, error)

func (*Generator) GetReceipts

func (g *Generator) GetReceipts(ctx context.Context, cfg *chain.Config, tx kv.TemporalTx, block *types.Block) (types.Receipts, error)

func (*Generator) LogStats

func (g *Generator) LogStats()

func (*Generator) PrepareEnv

func (g *Generator) PrepareEnv(ctx context.Context, header *types.Header, cfg *chain.Config, tx kv.TemporalTx, txIndex int) (*ReceiptEnv, error)

type ReceiptEnv

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

Jump to

Keyboard shortcuts

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