Versions in this module Expand all Collapse all v1 v1.999.0 Nov 17, 2022 Changes in this version + func NewBalanceComputation() (*balanceComputation, error) + func NewBlockSizeComputation(marshalizer marshal.Marshalizer, blockSizeThrottler BlockSizeThrottler, ...) (*blockSizeComputation, error) + func NewGasComputation(economicsFee process.FeeHandler, txTypeHandler process.TxTypeHandler, ...) (*gasComputation, error) + func NewRewardTxPreprocessor(rewardTxDataPool dataRetriever.ShardedDataCacherNotifier, ...) (*rewardTxPreprocessor, error) + func NewScheduledTxsExecution(txProcessor process.TransactionProcessor, ...) (*scheduledTxsExecution, error) + func NewSmartContractResultPreprocessor(scrDataPool dataRetriever.ShardedDataCacherNotifier, ...) (*smartContractResults, error) + func NewTransactionPreprocessor(args ArgsTransactionPreProcessor) (*transactions, error) + func NewValidatorInfoPreprocessor(hasher hashing.Hasher, marshalizer marshal.Marshalizer, ...) (*validatorInfoPreprocessor, error) + type ArgsTransactionPreProcessor struct + Accounts state.AccountsAdapter + BalanceComputation BalanceComputationHandler + BlockSizeComputation BlockSizeComputationHandler + BlockTracker BlockTracker + BlockType block.Type + EconomicsFee process.FeeHandler + EpochNotifier process.EpochNotifier + FrontRunningProtectionEnableEpoch uint32 + GasHandler process.GasHandler + Hasher hashing.Hasher + Marshalizer marshal.Marshalizer + OnRequestTransaction func(shardID uint32, txHashes [][]byte) + OptimizeGasUsedInCrossMiniBlocksEnableEpoch uint32 + ProcessedMiniBlocksTracker process.ProcessedMiniBlocksTracker + PubkeyConverter core.PubkeyConverter + ScheduledMiniBlocksEnableEpoch uint32 + ScheduledTxsExecutionHandler process.ScheduledTxsExecutionHandler + ShardCoordinator sharding.Coordinator + Store dataRetriever.StorageService + TxDataPool dataRetriever.ShardedDataCacherNotifier + TxProcessor process.TransactionProcessor + TxTypeHandler process.TxTypeHandler + type BalanceComputationHandler interface + AddBalanceToAddress func(address []byte, value *big.Int) bool + AddressHasEnoughBalance func(address []byte, value *big.Int) bool + Init func() + IsAddressSet func(address []byte) bool + IsInterfaceNil func() bool + SetBalanceToAddress func(address []byte, value *big.Int) + SubBalanceFromAddress func(address []byte, value *big.Int) bool + type BlockSizeComputationHandler interface + AddNumMiniBlocks func(numMiniBlocks int) + AddNumTxs func(numTxs int) + Init func() + IsInterfaceNil func() bool + IsMaxBlockSizeReached func(numNewMiniBlocks int, numNewTxs int) bool + IsMaxBlockSizeWithoutThrottleReached func(numNewMiniBlocks int, numNewTxs int) bool + type BlockSizeThrottler interface + GetCurrentMaxSize func() uint32 + IsInterfaceNil func() bool + type BlockTracker interface + IsInterfaceNil func() bool + IsShardStuck func(shardID uint32) bool + ShouldSkipMiniBlocksCreationFromSelf func() bool + type SortedTransactionsProvider interface + GetSortedTransactions func() []*txcache.WrappedTransaction + IsInterfaceNil func() bool + NotifyAccountNonce func(accountKey []byte, nonce uint64) + type TxCache interface + IsInterfaceNil func() bool + NotifyAccountNonce func(accountKey []byte, nonce uint64) + SelectTransactionsWithBandwidth func(numRequested int, batchSizePerSender int, bandwidthPerSender uint64) []*txcache.WrappedTransaction