process

package
v1.5.10 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: GPL-3.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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