Documentation
¶
Index ¶
- func DisplayLastNotarized(marshalizer marshal.Marshalizer, hasher hashing.Hasher, ...)
- func NewEpochStartData(args ArgsNewEpochStartData) (*epochStartData, error)
- func NewHeaderCounter() *headersCounter
- func NewHeaderValidator(args ArgsHeaderValidator) (*headerValidator, error)
- func NewMetaProcessor(arguments ArgMetaProcessor) (*metaProcessor, error)
- func NewShardProcessor(arguments ArgShardProcessor) (*shardProcessor, error)
- func NewTransactionCounter() *transactionCounter
- type ArgBaseProcessor
- type ArgMetaProcessor
- type ArgShardProcessor
- type ArgsHeaderValidator
- type ArgsNewEpochStartData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisplayLastNotarized ¶
func DisplayLastNotarized( marshalizer marshal.Marshalizer, hasher hashing.Hasher, lastNotarizedHdrForShard data.HeaderHandler, shardId uint32)
DisplayLastNotarized will display information about last notarized block
func NewEpochStartData ¶ added in v1.0.84
func NewEpochStartData(args ArgsNewEpochStartData) (*epochStartData, error)
NewEpochStartData creates a new epoch start creator
func NewHeaderCounter ¶
func NewHeaderCounter() *headersCounter
NewHeaderCounter returns a new object that keeps track of how many headers were processed in total, and in the current block
func NewHeaderValidator ¶
func NewHeaderValidator(args ArgsHeaderValidator) (*headerValidator, error)
NewHeaderValidator returns a new header validator
func NewMetaProcessor ¶
func NewMetaProcessor(arguments ArgMetaProcessor) (*metaProcessor, error)
NewMetaProcessor creates a new metaProcessor object
func NewShardProcessor ¶
func NewShardProcessor(arguments ArgShardProcessor) (*shardProcessor, error)
NewShardProcessor creates a new shardProcessor object
func NewTransactionCounter ¶
func NewTransactionCounter() *transactionCounter
NewTransactionCounter returns a new object that keeps track of how many transactions were executed in total, and in the current block
Types ¶
type ArgBaseProcessor ¶
type ArgBaseProcessor struct {
Accounts state.AccountsAdapter
ForkDetector process.ForkDetector
Hasher hashing.Hasher
Marshalizer marshal.Marshalizer
Store dataRetriever.StorageService
ShardCoordinator sharding.Coordinator
NodesCoordinator sharding.NodesCoordinator
SpecialAddressHandler process.SpecialAddressHandler
Uint64Converter typeConverters.Uint64ByteSliceConverter
RequestHandler process.RequestHandler
Core serviceContainer.Core
BlockChainHook process.BlockChainHookHandler
TxCoordinator process.TransactionCoordinator
ValidatorStatisticsProcessor process.ValidatorStatisticsProcessor
EpochStartTrigger process.EpochStartTriggerHandler
HeaderValidator process.HeaderConstructionValidator
Rounder consensus.Rounder
BootStorer process.BootStorer
BlockTracker process.BlockTracker
DataPool dataRetriever.PoolsHolder
}
ArgBaseProcessor holds all dependencies required by the process data factory in order to create new instances
type ArgMetaProcessor ¶
type ArgMetaProcessor struct {
ArgBaseProcessor
PendingMiniBlocksHandler process.PendingMiniBlocksHandler
SCDataGetter external.SCQueryService
PeerChangesHandler process.PeerChangesHandler
SCToProtocol process.SmartContractToProtocolHandler
}
ArgMetaProcessor holds all dependencies required by the process data factory in order to create new instances of meta processor
type ArgShardProcessor ¶
type ArgShardProcessor struct {
ArgBaseProcessor
TxsPoolsCleaner process.PoolsCleaner
StateCheckpointModulus uint
}
ArgShardProcessor holds all dependencies required by the process data factory in order to create new instances of shard processor
type ArgsHeaderValidator ¶
type ArgsHeaderValidator struct {
Hasher hashing.Hasher
Marshalizer marshal.Marshalizer
}
ArgsHeaderValidator are the arguments needed to create a new header validator
type ArgsNewEpochStartData ¶ added in v1.0.84
type ArgsNewEpochStartData struct {
Marshalizer marshal.Marshalizer
Hasher hashing.Hasher
Store dataRetriever.StorageService
DataPool dataRetriever.PoolsHolder
BlockTracker process.BlockTracker
ShardCoordinator sharding.Coordinator
EpochStartTrigger process.EpochStartTriggerHandler
}
ArgsNewEpochStartData defines the input parameters for epoch start data creator