process

package
v1.0.120 Latest Latest
Warning

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

Go to latest
Published: May 29, 2020 License: GPL-3.0 Imports: 17 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 {
	ImportHandler    update.ImportHandler
	Marshalizer      marshal.Marshalizer
	Hasher           hashing.Hasher
	ShardCoordinator sharding.Coordinator
}

ArgsNewMetaBlockCreatorAfterHardfork defines the arguments structure for new metablock creator after hardfork

type ArgsNewShardBlockCreatorAfterHardFork

type ArgsNewShardBlockCreatorAfterHardFork struct {
	ShardCoordinator   sharding.Coordinator
	TxCoordinator      process.TransactionCoordinator
	PendingTxProcessor update.PendingTransactionProcessor
	ImportHandler      update.ImportHandler
	Marshalizer        marshal.Marshalizer
	Hasher             hashing.Hasher
}

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