Documentation
¶
Index ¶
- func DisplayLastNotarized(marshalizer marshal.Marshalizer, hasher hashing.Hasher, ...)
- func NewHeaderCounter() *headersCounter
- func NewHeaderValidator(args ArgsHeaderValidator) (*headerValidator, error)
- func NewMetaProcessor(arguments ArgMetaProcessor) (*metaProcessor, error)
- func NewShardProcessor(arguments ArgShardProcessor) (*shardProcessor, error)
- func NewTransactionCounter(args ArgsTransactionCounter) (*transactionCounter, error)
- type ArgBaseProcessor
- type ArgMetaProcessor
- type ArgShardProcessor
- type ArgsHeaderValidator
- type ArgsTransactionCounter
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 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(args ArgsTransactionCounter) (*transactionCounter, error)
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 {
CoreComponents coreComponentsHolder
DataComponents dataComponentsHolder
BootstrapComponents bootstrapComponentsHolder
StatusComponents statusComponentsHolder
StatusCoreComponents statusCoreComponentsHolder
Config config.Config
PrefsConfig config.Preferences
AccountsDB map[state.AccountsDbIdentifier]state.AccountsAdapter
ForkDetector process.ForkDetector
NodesCoordinator nodesCoordinator.NodesCoordinator
FeeHandler process.TransactionFeeHandler
RequestHandler process.RequestHandler
BlockChainHook process.BlockChainHookHandler
TxCoordinator process.TransactionCoordinator
EpochStartTrigger process.EpochStartTriggerHandler
HeaderValidator process.HeaderConstructionValidator
BootStorer process.BootStorer
BlockTracker process.BlockTracker
BlockSizeThrottler process.BlockSizeThrottler
Version string
HistoryRepository dblookupext.HistoryRepository
VMContainersFactory process.VirtualMachinesContainerFactory
VmContainer process.VirtualMachinesContainer
GasHandler gasConsumedProvider
OutportDataProvider outport.DataProviderOutport
ScheduledTxsExecutionHandler process.ScheduledTxsExecutionHandler
ScheduledMiniBlocksEnableEpoch uint32
ProcessedMiniBlocksTracker process.ProcessedMiniBlocksTracker
ReceiptsRepository receiptsRepository
BlockProcessingCutoffHandler cutoff.BlockProcessingCutoffHandler
ManagedPeersHolder common.ManagedPeersHolder
SentSignaturesTracker process.SentSignaturesTracker
}
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
SCToProtocol process.SmartContractToProtocolHandler
EpochStartDataCreator process.EpochStartDataCreator
EpochEconomics process.EndOfEpochEconomics
EpochRewardsCreator process.RewardsCreator
EpochValidatorInfoCreator process.EpochStartValidatorInfoCreator
EpochSystemSCProcessor process.EpochStartSystemSCProcessor
ValidatorStatisticsProcessor process.ValidatorStatisticsProcessor
FieldsSizeChecker common.FieldsSizeChecker
}
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
}
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
EnableEpochsHandler core.EnableEpochsHandler
}
ArgsHeaderValidator are the arguments needed to create a new header validator
type ArgsTransactionCounter ¶ added in v1.6.0
type ArgsTransactionCounter struct {
AppStatusHandler core.AppStatusHandler
Hasher hashing.Hasher
Marshalizer marshal.Marshalizer
ShardID uint32
}
ArgsTransactionCounter represents the arguments needed to create a new transaction counter