coordinator

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTransactionCoordinator

func NewTransactionCoordinator(arguments 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 added in v1.0.103

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

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

type ArgTransactionCoordinator added in v1.2.0

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
	BlockGasAndFeesReCheckEnableEpoch uint32
}

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

Jump to

Keyboard shortcuts

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