process

package
v1.6.16 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAfterHardForkBlockCreation

func NewAfterHardForkBlockCreation(args ArgsAfterHardFork) (*afterHardFork, error)

NewAfterHardForkBlockCreation creates the after hard fork block creator process handler

func NewMetaBlockCreatorAfterHardfork

func NewMetaBlockCreatorAfterHardfork(args ArgsNewMetaBlockCreatorAfterHardFork) (*metaBlockCreator, error)

NewMetaBlockCreatorAfterHardfork creates the after hardfork metablock creator

func NewPendingTransactionProcessor

func NewPendingTransactionProcessor(args ArgsPendingTransactionProcessor) (*pendingProcessor, error)

NewPendingTransactionProcessor creates a pending transaction processor to be used after hardfork import

func NewShardBlockCreatorAfterHardFork

func NewShardBlockCreatorAfterHardFork(args ArgsNewShardBlockCreatorAfterHardFork) (*shardBlockCreator, error)

NewShardBlockCreatorAfterHardFork creates a shard block processor for the first block after hardfork

Types

type ArgsAfterHardFork

type ArgsAfterHardFork struct {
	MapBlockProcessors map[uint32]update.HardForkBlockProcessor
	ImportHandler      update.ImportHandler
	ShardCoordinator   sharding.Coordinator
	Hasher             hashing.Hasher
	Marshalizer        marshal.Marshalizer
}

ArgsAfterHardFork defines the arguments for the new after hard fork process handler

type ArgsNewMetaBlockCreatorAfterHardFork

type ArgsNewMetaBlockCreatorAfterHardFork struct {
	Hasher             hashing.Hasher
	ImportHandler      update.ImportHandler
	Marshalizer        marshal.Marshalizer
	PendingTxProcessor update.PendingTransactionProcessor
	ShardCoordinator   sharding.Coordinator
	Storage            dataRetriever.StorageService
	TxCoordinator      process.TransactionCoordinator
	ValidatorAccounts  state.AccountsAdapter
	ReceiptsRepository receiptsRepository
	SelfShardID        uint32
}

ArgsNewMetaBlockCreatorAfterHardFork defines the arguments structure for new metablock creator after hardfork

type ArgsNewShardBlockCreatorAfterHardFork

type ArgsNewShardBlockCreatorAfterHardFork struct {
	Hasher             hashing.Hasher
	ImportHandler      update.ImportHandler
	Marshalizer        marshal.Marshalizer
	PendingTxProcessor update.PendingTransactionProcessor
	ShardCoordinator   sharding.Coordinator
	Storage            dataRetriever.StorageService
	TxCoordinator      process.TransactionCoordinator
	ReceiptsRepository receiptsRepository
	SelfShardID        uint32
}

ArgsNewShardBlockCreatorAfterHardFork defines the arguments structure to create a new shard block creator

type ArgsPendingTransactionProcessor

type ArgsPendingTransactionProcessor struct {
	Accounts         state.AccountsAdapter
	TxProcessor      process.TransactionProcessor
	RwdTxProcessor   process.RewardTransactionProcessor
	ScrTxProcessor   process.SmartContractResultProcessor
	PubKeyConv       core.PubkeyConverter
	ShardCoordinator sharding.Coordinator
}

ArgsPendingTransactionProcessor defines the arguments structure

Jump to

Keyboard shortcuts

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