Documentation ¶
Index ¶
- func NewInterceptorsContainerFactory(shardCoordinator sharding.Coordinator, ...) (*interceptorsContainerFactory, error)
- func NewIntermediateProcessorsContainerFactory(shardCoordinator sharding.Coordinator, marshalizer marshal.Marshalizer, ...) (*intermediateProcessorsContainerFactory, error)
- func NewPreProcessorsContainerFactory(shardCoordinator sharding.Coordinator, store dataRetriever.StorageService, ...) (*preProcessorsContainerFactory, error)
- func NewVMContainerFactory(argBlockChainHook hooks.ArgBlockChainHook, economics *economics.EconomicsData) (*vmContainerFactory, error)
- type TransactionFeeHandler
- func (t *TransactionFeeHandler) CheckValidityTxValues(_ process.TransactionWithFeeHandler) error
- func (t *TransactionFeeHandler) ComputeFee(_ process.TransactionWithFeeHandler) *big.Int
- func (t *TransactionFeeHandler) ComputeGasLimit(_ process.TransactionWithFeeHandler) uint64
- func (t *TransactionFeeHandler) IsInterfaceNil() bool
- func (t *TransactionFeeHandler) MaxGasLimitPerBlock() uint64
- func (t *TransactionFeeHandler) ProcessTransactionFee(_ *big.Int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInterceptorsContainerFactory ¶ added in v1.0.3
func NewInterceptorsContainerFactory( shardCoordinator sharding.Coordinator, nodesCoordinator sharding.NodesCoordinator, messenger process.TopicHandler, store dataRetriever.StorageService, marshalizer marshal.Marshalizer, hasher hashing.Hasher, multiSigner crypto.MultiSigner, dataPool dataRetriever.PoolsHolder, accounts state.AccountsAdapter, addrConverter state.AddressConverter, singleSigner crypto.SingleSigner, blockSingleSigner crypto.SingleSigner, keyGen crypto.KeyGenerator, blockKeyGen crypto.KeyGenerator, maxTxNonceDeltaAllowed int, txFeeHandler process.FeeHandler, blackList process.BlackListHandler, headerSigVerifier process.InterceptedHeaderSigVerifier, chainID []byte, sizeCheckDelta uint32, validityAttester process.ValidityAttester, epochStartTrigger process.EpochStartTriggerHandler, ) (*interceptorsContainerFactory, error)
NewInterceptorsContainerFactory is responsible for creating a new interceptors factory object
func NewIntermediateProcessorsContainerFactory ¶
func NewIntermediateProcessorsContainerFactory( shardCoordinator sharding.Coordinator, marshalizer marshal.Marshalizer, hasher hashing.Hasher, addrConverter state.AddressConverter, store dataRetriever.StorageService, poolsHolder dataRetriever.PoolsHolder, ) (*intermediateProcessorsContainerFactory, error)
NewIntermediateProcessorsContainerFactory is responsible for creating a new intermediate processors factory object
func NewPreProcessorsContainerFactory ¶
func NewPreProcessorsContainerFactory( shardCoordinator sharding.Coordinator, store dataRetriever.StorageService, marshalizer marshal.Marshalizer, hasher hashing.Hasher, dataPool dataRetriever.PoolsHolder, accounts state.AccountsAdapter, requestHandler process.RequestHandler, txProcessor process.TransactionProcessor, scResultProcessor process.SmartContractResultProcessor, economicsFee process.FeeHandler, miniBlocksCompacter process.MiniBlocksCompacter, gasHandler process.GasHandler, blockTracker preprocess.BlockTracker, ) (*preProcessorsContainerFactory, error)
NewPreProcessorsContainerFactory is responsible for creating a new preProcessors factory object
func NewVMContainerFactory ¶
func NewVMContainerFactory( argBlockChainHook hooks.ArgBlockChainHook, economics *economics.EconomicsData, ) (*vmContainerFactory, error)
NewVMContainerFactory is responsible for creating a new virtual machine factory object
Types ¶
type TransactionFeeHandler ¶ added in v1.0.39
type TransactionFeeHandler struct { }
TransactionFeeHandler is an empty struct which implements TransactionFeeHandler interface
func (*TransactionFeeHandler) CheckValidityTxValues ¶ added in v1.0.41
func (t *TransactionFeeHandler) CheckValidityTxValues(_ process.TransactionWithFeeHandler) error
CheckValidityTxValues will return nil for any tx
func (*TransactionFeeHandler) ComputeFee ¶ added in v1.0.41
func (t *TransactionFeeHandler) ComputeFee(_ process.TransactionWithFeeHandler) *big.Int
ComputeFee will return 0
func (*TransactionFeeHandler) ComputeGasLimit ¶ added in v1.0.41
func (t *TransactionFeeHandler) ComputeGasLimit(_ process.TransactionWithFeeHandler) uint64
ComputeGasLimit will return 0
func (*TransactionFeeHandler) IsInterfaceNil ¶ added in v1.0.39
func (t *TransactionFeeHandler) IsInterfaceNil() bool
IsInterfaceNil verifies if underlying struct is nil
func (*TransactionFeeHandler) MaxGasLimitPerBlock ¶ added in v1.0.41
func (t *TransactionFeeHandler) MaxGasLimitPerBlock() uint64
MaxGasLimitPerBlock will return the maximum gas limit to exist in a block
func (*TransactionFeeHandler) ProcessTransactionFee ¶ added in v1.0.39
func (t *TransactionFeeHandler) ProcessTransactionFee(_ *big.Int)
ProcessTransactionFee empty cost processing for metachain