metachain

package
v1.0.40 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: GPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInterceptorsContainerFactory added in v1.0.3

func NewInterceptorsContainerFactory(
	shardCoordinator sharding.Coordinator,
	nodesCoordinator sharding.NodesCoordinator,
	messenger process.TopicHandler,
	store dataRetriever.StorageService,
	marshalizer marshal.Marshalizer,
	hasher hashing.Hasher,
	multiSigner crypto.MultiSigner,
	dataPool dataRetriever.MetaPoolsHolder,
	accounts state.AccountsAdapter,
	addrConverter state.AddressConverter,
	singleSigner crypto.SingleSigner,
	keyGen crypto.KeyGenerator,
	maxTxNonceDeltaAllowed int,
	txFeeHandler process.FeeHandler,
	blackList process.BlackListHandler,
) (*interceptorsContainerFactory, error)

NewInterceptorsContainerFactory is responsible for creating a new interceptors factory object

func NewIntermediateProcessorsContainerFactory

func NewIntermediateProcessorsContainerFactory(
	shardCoordinator sharding.Coordinator,
	marshalizer marshal.Marshalizer,
	hasher hashing.Hasher,
	addrConverter state.AddressConverter,
	store dataRetriever.StorageService,
	poolsHolder dataRetriever.MetaPoolsHolder,
) (*intermediateProcessorsContainerFactory, error)

NewIntermediateProcessorsContainerFactory is responsible for creating a new intermediate processors factory object

func NewPreProcessorsContainerFactory

func NewPreProcessorsContainerFactory(
	shardCoordinator sharding.Coordinator,
	store dataRetriever.StorageService,
	marshalizer marshal.Marshalizer,
	hasher hashing.Hasher,
	dataPool dataRetriever.MetaPoolsHolder,
	accounts state.AccountsAdapter,
	requestHandler process.RequestHandler,
	txProcessor process.TransactionProcessor,
	economicsFee process.FeeHandler,
	miniBlocksCompacter process.MiniBlocksCompacter,
) (*preProcessorsContainerFactory, error)

NewPreProcessorsContainerFactory is responsible for creating a new preProcessors factory object

func NewVMContainerFactory

func NewVMContainerFactory(
	argBlockChainHook hooks.ArgBlockChainHook,
	economics *economics.EconomicsData,
) (*vmContainerFactory, error)

NewVMContainerFactory is responsible for creating a new virtual machine factory object

Types

type TransactionFeeHandler added in v1.0.39

type TransactionFeeHandler struct {
}

TransactionFeeHandler is an empty struct which implements TransactionFeeHandler interface

func (*TransactionFeeHandler) IsInterfaceNil added in v1.0.39

func (t *TransactionFeeHandler) IsInterfaceNil() bool

IsInterfaceNil verifies if underlying struct is nil

func (*TransactionFeeHandler) ProcessTransactionFee added in v1.0.39

func (t *TransactionFeeHandler) ProcessTransactionFee(cost *big.Int)

ProcessTransactionFee empty cost processing for metachain

Jump to

Keyboard shortcuts

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