Versions in this module Expand all Collapse all v0 v0.0.2 Oct 31, 2023 v0.0.1 Oct 30, 2023 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 NewSmartContractResultPreprocessor(scrDataPool dataRetriever.ShardedDataCacherNotifier, ...) (*smartContractResults, error) + func NewTransactionPreprocessor(txDataPool dataRetriever.ShardedDataCacherNotifier, ...) (*transactions, error) + func NewValidatorInfoPreprocessor(hasher hashing.Hasher, marshalizer marshal.Marshalizer) (*validatorInfoPreprocessor, error) + func SortTransactionsBySenderAndNonce(transactions []*txcache.WrappedTransaction) + 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 + 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) + SelectTransactions func(numRequested int, batchSizePerSender int) []*txcache.WrappedTransaction