interceptorscontainer

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMetaInterceptorsContainerFactory

func NewMetaInterceptorsContainerFactory(
	args MetaInterceptorsContainerFactoryArgs,
) (*metaInterceptorsContainerFactory, error)

NewMetaInterceptorsContainerFactory is responsible for creating a new interceptors factory object

func NewShardInterceptorsContainerFactory

func NewShardInterceptorsContainerFactory(
	args ShardInterceptorsContainerFactoryArgs,
) (*shardInterceptorsContainerFactory, error)

NewShardInterceptorsContainerFactory is responsible for creating a new interceptors factory object

Types

type MetaInterceptorsContainerFactoryArgs

type MetaInterceptorsContainerFactoryArgs struct {
	CoreComponents            process.CoreComponentsHolder
	CryptoComponents          process.CryptoComponentsHolder
	ShardCoordinator          sharding.Coordinator
	NodesCoordinator          sharding.NodesCoordinator
	Messenger                 process.TopicHandler
	Store                     dataRetriever.StorageService
	DataPool                  dataRetriever.PoolsHolder
	Accounts                  state.AccountsAdapter
	MaxTxNonceDeltaAllowed    int
	TxFeeHandler              process.FeeHandler
	BlackList                 process.TimeCacher
	HeaderSigVerifier         process.InterceptedHeaderSigVerifier
	HeaderIntegrityVerifier   process.HeaderIntegrityVerifier
	ValidityAttester          process.ValidityAttester
	EpochStartTrigger         process.EpochStartTriggerHandler
	WhiteListHandler          process.WhiteListHandler
	WhiteListerVerifiedTxs    process.WhiteListHandler
	AntifloodHandler          process.P2PAntifloodHandler
	ArgumentsParser           process.ArgumentsParser
	SizeCheckDelta            uint32
	EnableSignTxWithHashEpoch uint32
}

MetaInterceptorsContainerFactoryArgs holds the arguments needed for MetaInterceptorsContainerFactory

type ShardInterceptorsContainerFactoryArgs

type ShardInterceptorsContainerFactoryArgs struct {
	CoreComponents            process.CoreComponentsHolder
	CryptoComponents          process.CryptoComponentsHolder
	Accounts                  state.AccountsAdapter
	ShardCoordinator          sharding.Coordinator
	NodesCoordinator          sharding.NodesCoordinator
	Messenger                 process.TopicHandler
	Store                     dataRetriever.StorageService
	DataPool                  dataRetriever.PoolsHolder
	MaxTxNonceDeltaAllowed    int
	TxFeeHandler              process.FeeHandler
	BlockBlackList            process.TimeCacher
	HeaderSigVerifier         process.InterceptedHeaderSigVerifier
	HeaderIntegrityVerifier   process.HeaderIntegrityVerifier
	ValidityAttester          process.ValidityAttester
	EpochStartTrigger         process.EpochStartTriggerHandler
	WhiteListHandler          process.WhiteListHandler
	WhiteListerVerifiedTxs    process.WhiteListHandler
	AntifloodHandler          process.P2PAntifloodHandler
	ArgumentsParser           process.ArgumentsParser
	SizeCheckDelta            uint32
	EnableSignTxWithHashEpoch uint32
}

ShardInterceptorsContainerFactoryArgs holds the arguments needed for ShardInterceptorsContainerFactory

Jump to

Keyboard shortcuts

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