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 ¶ added in v1.1.12
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