Documentation ¶
Index ¶
- func NewAfterHardForkBlockCreation(args ArgsAfterHardFork) (*afterHardFork, error)
- func NewMetaBlockCreatorAfterHardfork(args ArgsNewMetaBlockCreatorAfterHardfork) (*metaBlockCreator, error)
- func NewPendingTransactionProcessor(args ArgsPendingTransactionProcessor) (*pendingProcessor, error)
- func NewShardBlockCreatorAfterHardFork(args ArgsNewShardBlockCreatorAfterHardFork) (*shardBlockCreator, error)
- type ArgsAfterHardFork
- type ArgsNewMetaBlockCreatorAfterHardfork
- type ArgsNewShardBlockCreatorAfterHardFork
- type ArgsPendingTransactionProcessor
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 ValidatorAccounts state.AccountsAdapter }
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 SelfShardID uint32 DataPool dataRetriever.PoolsHolder Storage dataRetriever.StorageService }
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