coordinator

package
v1.1.55 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTransactionCoordinator

func NewTransactionCoordinator(
	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,
	blockGasAndFeesReCheckEnableEpoch uint32,
) (*transactionCoordinator, error)

TODO: Should be refactored with arguments (added task EN-8790 in Jira) 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 added in v1.0.103

type ArgNewTxTypeHandler struct {
	PubkeyConverter  core.PubkeyConverter
	ShardCoordinator sharding.Coordinator
	BuiltInFuncNames map[string]struct{}
	ArgumentParser   process.CallArgumentsParser
}

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

Jump to

Keyboard shortcuts

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