coordinator

package
v1.11.5 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: GPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDoubleTransactionsDetector added in v1.11.4

func NewDoubleTransactionsDetector(args ArgsDoubleTransactionsDetector) (*doubleTransactionsDetector, error)

NewDoubleTransactionsDetector creates a new instance of doubleTransactionsDetector

func NewTransactionCoordinator

func NewTransactionCoordinator(args ArgTransactionCoordinator) (*transactionCoordinator, error)

NewTransactionCoordinator creates a transaction coordinator to run and coordinate preprocessors and processors

func NewTxTypeHandler

func NewTxTypeHandler(
	args ArgNewTxTypeHandler,
) (*txTypeHandler, error)

NewTxTypeHandler creates a transaction type handler

Types

type ArgNewTxTypeHandler

type ArgNewTxTypeHandler struct {
	PubkeyConverter     core.PubkeyConverter
	ShardCoordinator    sharding.Coordinator
	BuiltInFunctions    vmcommon.BuiltInFunctionContainer
	ArgumentParser      process.CallArgumentsParser
	ESDTTransferParser  vmcommon.ESDTTransferParser
	EnableEpochsHandler common.EnableEpochsHandler
}

ArgNewTxTypeHandler defines the arguments needed to create a new tx type handler

type ArgTransactionCoordinator

type ArgTransactionCoordinator struct {
	Hasher                       hashing.Hasher
	Marshalizer                  marshal.Marshalizer
	ShardCoordinator             sharding.Coordinator
	Accounts                     state.AccountsAdapter
	MiniBlockPool                storage.Cacher
	RequestHandler               process.RequestHandler
	PreProcessors                process.PreProcessorsContainer
	InterProcessors              process.IntermediateProcessorContainer
	GasHandler                   process.GasHandler
	FeeHandler                   process.TransactionFeeHandler
	BlockSizeComputation         preprocess.BlockSizeComputationHandler
	BalanceComputation           preprocess.BalanceComputationHandler
	EconomicsFee                 process.FeeHandler
	TxTypeHandler                process.TxTypeHandler
	TransactionsLogProcessor     process.TransactionLogProcessor
	EnableEpochsHandler          common.EnableEpochsHandler
	ScheduledTxsExecutionHandler process.ScheduledTxsExecutionHandler
	DoubleTransactionsDetector   process.DoubleTransactionDetector
	ProcessedMiniBlocksTracker   process.ProcessedMiniBlocksTracker
	TxExecutionOrderHandler      common.TxExecutionOrderHandler
}

ArgTransactionCoordinator holds all dependencies required by the transaction coordinator factory in order to create new instances

type ArgsDoubleTransactionsDetector added in v1.11.4

type ArgsDoubleTransactionsDetector struct {
	Marshaller          marshal.Marshalizer
	Hasher              hashing.Hasher
	EnableEpochsHandler common.EnableEpochsHandler
}

ArgsDoubleTransactionsDetector is the argument DTO structure used in the NewDoubleTransactionsDetector function

Jump to

Keyboard shortcuts

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