disabled

package
v1.3.22-indexer1.2.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMessageSignVerifier added in v1.0.120

func NewMessageSignVerifier(kg crypto.KeyGenerator) (*messageSignVerifier, error)

NewMessageSignVerifier creates a new message sign verifier - which verifies only the public key validity

Types

type BalanceComputationHandler

type BalanceComputationHandler struct {
}

BalanceComputationHandler implements BalanceComputationHandler interface but does nothing as it is a disabled component

func (*BalanceComputationHandler) AddBalanceToAddress

func (b *BalanceComputationHandler) AddBalanceToAddress(_ []byte, _ *big.Int) bool

AddBalanceToAddress returns true as it is a disabled component

func (*BalanceComputationHandler) AddressHasEnoughBalance

func (b *BalanceComputationHandler) AddressHasEnoughBalance(_ []byte, _ *big.Int) bool

AddressHasEnoughBalance returns true as it is a disabled component

func (*BalanceComputationHandler) Init

func (b *BalanceComputationHandler) Init()

Init does nothing as it is a disabled component

func (*BalanceComputationHandler) IsAddressSet

func (b *BalanceComputationHandler) IsAddressSet(_ []byte) bool

IsAddressSet returns true as it is a disabled component

func (*BalanceComputationHandler) IsInterfaceNil

func (b *BalanceComputationHandler) IsInterfaceNil() bool

IsInterfaceNil returns true if underlying object is nil

func (*BalanceComputationHandler) SetBalanceToAddress

func (b *BalanceComputationHandler) SetBalanceToAddress(_ []byte, _ *big.Int)

SetBalanceToAddress does nothing as it is a disabled component

func (*BalanceComputationHandler) SubBalanceFromAddress

func (b *BalanceComputationHandler) SubBalanceFromAddress(_ []byte, _ *big.Int) bool

SubBalanceFromAddress returns true as it is a disabled component

type BlockSizeComputationHandler

type BlockSizeComputationHandler struct {
}

BlockSizeComputationHandler implements the BlockSizeComputationHandler interface but does nothing as it is disabled

func (*BlockSizeComputationHandler) AddNumMiniBlocks

func (b *BlockSizeComputationHandler) AddNumMiniBlocks(_ int)

AddNumMiniBlocks does nothing as it is a disabled component

func (*BlockSizeComputationHandler) AddNumTxs

func (b *BlockSizeComputationHandler) AddNumTxs(_ int)

AddNumTxs does nothing as it is a disabled component

func (*BlockSizeComputationHandler) Init

func (b *BlockSizeComputationHandler) Init()

Init does nothing as it is a disabled component

func (*BlockSizeComputationHandler) IsInterfaceNil

func (b *BlockSizeComputationHandler) IsInterfaceNil() bool

IsInterfaceNil returns true if underlying object is nil

func (*BlockSizeComputationHandler) IsMaxBlockSizeReached

func (b *BlockSizeComputationHandler) IsMaxBlockSizeReached(_ int, _ int) bool

IsMaxBlockSizeReached returns false as it is a disabled components

func (*BlockSizeComputationHandler) IsMaxBlockSizeWithoutThrottleReached

func (b *BlockSizeComputationHandler) IsMaxBlockSizeWithoutThrottleReached(_ int, _ int) bool

IsMaxBlockSizeWithoutThrottleReached returns false as it is a disabled component

type BlockTracker

type BlockTracker struct {
}

BlockTracker implements the BlockTracker interface but does nothing as it is disabled

func (*BlockTracker) IsInterfaceNil

func (b *BlockTracker) IsInterfaceNil() bool

IsInterfaceNil returns true if underlying object is nil

func (*BlockTracker) IsShardStuck

func (b *BlockTracker) IsShardStuck(_ uint32) bool

IsShardStuck returns false as this is a disabled implementation

func (*BlockTracker) ShouldSkipMiniBlocksCreationFromSelf added in v1.3.18

func (b *BlockTracker) ShouldSkipMiniBlocksCreationFromSelf() bool

ShouldSkipMiniBlocksCreationFromSelf returns false as this is a disabled implementation

type FeeHandler

type FeeHandler struct {
}

FeeHandler represents a disabled fee handler implementation

func (*FeeHandler) CheckValidityTxValues

func (fh *FeeHandler) CheckValidityTxValues(_ data.TransactionWithFeeHandler) error

CheckValidityTxValues returns nil

func (*FeeHandler) ComputeFeeForProcessing added in v1.1.15

func (fh *FeeHandler) ComputeFeeForProcessing(_ data.TransactionWithFeeHandler, _ uint64) *big.Int

ComputeFeeForProcessing returns 0

func (*FeeHandler) ComputeGasLimit

func (fh *FeeHandler) ComputeGasLimit(_ data.TransactionWithFeeHandler) uint64

ComputeGasLimit returns 0

func (*FeeHandler) ComputeGasLimitBasedOnBalance added in v1.2.4

func (fh *FeeHandler) ComputeGasLimitBasedOnBalance(_ data.TransactionWithFeeHandler, _ *big.Int) (uint64, error)

ComputeGasLimitBasedOnBalance returns 0 and nil

func (*FeeHandler) ComputeGasUsedAndFeeBasedOnRefundValue added in v1.2.0

func (fh *FeeHandler) ComputeGasUsedAndFeeBasedOnRefundValue(_ data.TransactionWithFeeHandler, _ *big.Int) (uint64, *big.Int)

ComputeGasUsedAndFeeBasedOnRefundValue returns 0, 0

func (*FeeHandler) ComputeMoveBalanceFee added in v1.1.1

func (fh *FeeHandler) ComputeMoveBalanceFee(_ data.TransactionWithFeeHandler) *big.Int

ComputeMoveBalanceFee returns 0

func (*FeeHandler) ComputeTxFee added in v1.1.1

func (fh *FeeHandler) ComputeTxFee(_ data.TransactionWithFeeHandler) *big.Int

ComputeTxFee returns 0

func (*FeeHandler) ComputeTxFeeBasedOnGasUsed added in v1.2.0

func (fh *FeeHandler) ComputeTxFeeBasedOnGasUsed(_ data.TransactionWithFeeHandler, _ uint64) *big.Int

ComputeTxFeeBasedOnGasUsed returns 0

func (*FeeHandler) CreateBlockStarted

func (fh *FeeHandler) CreateBlockStarted(_ scheduled.GasAndFees)

CreateBlockStarted does nothing

func (*FeeHandler) DeveloperPercentage

func (fh *FeeHandler) DeveloperPercentage() float64

DeveloperPercentage returns 0

func (*FeeHandler) GasPerDataByte added in v1.2.0

func (fh *FeeHandler) GasPerDataByte() uint64

GasPerDataByte returns 0

func (*FeeHandler) GasPriceForMove added in v1.2.0

func (fh *FeeHandler) GasPriceForMove(_ data.TransactionWithFeeHandler) uint64

GasPriceForMove returns 0

func (*FeeHandler) GasPriceForProcessing added in v1.2.0

func (fh *FeeHandler) GasPriceForProcessing(_ data.TransactionWithFeeHandler) uint64

GasPriceForProcessing returns 0

func (*FeeHandler) GasPriceModifier added in v1.1.15

func (fh *FeeHandler) GasPriceModifier() float64

GasPriceModifier returns 1.0

func (*FeeHandler) GenesisTotalSupply added in v1.1.22

func (fh *FeeHandler) GenesisTotalSupply() *big.Int

GenesisTotalSupply returns 0

func (*FeeHandler) GetAccumulatedFees

func (fh *FeeHandler) GetAccumulatedFees() *big.Int

GetAccumulatedFees returns 0

func (*FeeHandler) GetDeveloperFees

func (fh *FeeHandler) GetDeveloperFees() *big.Int

GetDeveloperFees returns 0

func (*FeeHandler) IsInterfaceNil

func (fh *FeeHandler) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*FeeHandler) MaxGasLimitPerBlock

func (fh *FeeHandler) MaxGasLimitPerBlock(uint32) uint64

MaxGasLimitPerBlock returns max uint64

func (*FeeHandler) MaxGasLimitPerBlockForSafeCrossShard added in v1.2.23

func (fh *FeeHandler) MaxGasLimitPerBlockForSafeCrossShard() uint64

MaxGasLimitPerBlockForSafeCrossShard returns max uint64

func (*FeeHandler) MaxGasLimitPerMiniBlock added in v1.2.23

func (fh *FeeHandler) MaxGasLimitPerMiniBlock(uint32) uint64

MaxGasLimitPerMiniBlock returns max uint64

func (*FeeHandler) MaxGasLimitPerMiniBlockForSafeCrossShard added in v1.2.23

func (fh *FeeHandler) MaxGasLimitPerMiniBlockForSafeCrossShard() uint64

MaxGasLimitPerMiniBlockForSafeCrossShard returns max uint64

func (*FeeHandler) MaxGasLimitPerTx added in v1.3.0

func (fh *FeeHandler) MaxGasLimitPerTx() uint64

MaxGasLimitPerTx returns max uint64

func (*FeeHandler) MinGasLimit added in v1.2.0

func (fh *FeeHandler) MinGasLimit() uint64

MinGasLimit returns 0

func (*FeeHandler) MinGasPrice

func (fh *FeeHandler) MinGasPrice() uint64

MinGasPrice returns 0

func (*FeeHandler) MinGasPriceForProcessing added in v1.2.0

func (fh *FeeHandler) MinGasPriceForProcessing() uint64

MinGasPriceForProcessing returns 0

func (*FeeHandler) ProcessTransactionFee

func (fh *FeeHandler) ProcessTransactionFee(_ *big.Int, _ *big.Int, _ []byte)

ProcessTransactionFee does nothing

func (*FeeHandler) ProcessTransactionFeeRelayedUserTx added in v1.3.19

func (fh *FeeHandler) ProcessTransactionFeeRelayedUserTx(_ *big.Int, _ *big.Int, _ []byte, _ []byte)

ProcessTransactionFeeRelayedUserTx does nothing

func (*FeeHandler) RevertFees

func (fh *FeeHandler) RevertFees(_ [][]byte)

RevertFees does nothing

func (*FeeHandler) SplitTxGasInCategories added in v1.2.0

func (fh *FeeHandler) SplitTxGasInCategories(_ data.TransactionWithFeeHandler) (uint64, uint64)

SplitTxGasInCategories returns 0, 0

type Rater added in v1.1.1

type Rater struct {
}

Rater implements the Rater interface, it does nothing as it is disabled

func (*Rater) GetChance added in v1.1.1

func (r *Rater) GetChance(_ uint32) uint32

GetChance does nothing as it is disabled

func (*Rater) IsInterfaceNil added in v1.1.1

func (r *Rater) IsInterfaceNil() bool

IsInterfaceNil returns true if underlying object is nil

type RequestHandler

type RequestHandler struct {
}

RequestHandler implements the RequestHandler interface but does nothing as it is disabled

func (*RequestHandler) CreateTrieNodeIdentifier added in v1.2.4

func (r *RequestHandler) CreateTrieNodeIdentifier(_ []byte, _ uint32) []byte

CreateTrieNodeIdentifier returns an empty slice

func (*RequestHandler) GetNumPeersToQuery

func (r *RequestHandler) GetNumPeersToQuery(_ string) (int, int, error)

GetNumPeersToQuery returns 0, 0 and nil

func (*RequestHandler) IsInterfaceNil

func (r *RequestHandler) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*RequestHandler) RequestInterval

func (r *RequestHandler) RequestInterval() time.Duration

RequestInterval returns one second

func (*RequestHandler) RequestMetaHeader

func (r *RequestHandler) RequestMetaHeader(_ []byte)

RequestMetaHeader does nothing

func (*RequestHandler) RequestMetaHeaderByNonce

func (r *RequestHandler) RequestMetaHeaderByNonce(_ uint64)

RequestMetaHeaderByNonce does nothing

func (*RequestHandler) RequestMiniBlock

func (r *RequestHandler) RequestMiniBlock(_ uint32, _ []byte)

RequestMiniBlock does nothing

func (*RequestHandler) RequestMiniBlocks

func (r *RequestHandler) RequestMiniBlocks(_ uint32, _ [][]byte)

RequestMiniBlocks does nothing

func (*RequestHandler) RequestRewardTransactions

func (r *RequestHandler) RequestRewardTransactions(_ uint32, _ [][]byte)

RequestRewardTransactions does nothing

func (*RequestHandler) RequestShardHeader

func (r *RequestHandler) RequestShardHeader(_ uint32, _ []byte)

RequestShardHeader does nothing

func (*RequestHandler) RequestShardHeaderByNonce

func (r *RequestHandler) RequestShardHeaderByNonce(_ uint32, _ uint64)

RequestShardHeaderByNonce does nothing

func (*RequestHandler) RequestStartOfEpochMetaBlock

func (r *RequestHandler) RequestStartOfEpochMetaBlock(_ uint32)

RequestStartOfEpochMetaBlock does nothing

func (*RequestHandler) RequestTransaction

func (r *RequestHandler) RequestTransaction(_ uint32, _ [][]byte)

RequestTransaction does nothing

func (*RequestHandler) RequestTrieNode added in v1.2.4

func (r *RequestHandler) RequestTrieNode(_ []byte, _ string, _ uint32)

RequestTrieNode does nothing

func (*RequestHandler) RequestTrieNodes

func (r *RequestHandler) RequestTrieNodes(_ uint32, _ [][]byte, _ string)

RequestTrieNodes does nothing

func (*RequestHandler) RequestUnsignedTransactions

func (r *RequestHandler) RequestUnsignedTransactions(_ uint32, _ [][]byte)

RequestUnsignedTransactions does nothing

func (*RequestHandler) SetEpoch

func (r *RequestHandler) SetEpoch(_ uint32)

SetEpoch does nothing

func (*RequestHandler) SetNumPeersToQuery

func (r *RequestHandler) SetNumPeersToQuery(_ string, _ int, _ int) error

SetNumPeersToQuery returns nil

type RewardTxProcessor added in v1.1.12

type RewardTxProcessor struct {
}

RewardTxProcessor implements the RewardTransactionProcessor interface but does nothing as it is disabled

func (*RewardTxProcessor) IsInterfaceNil added in v1.1.12

func (rtp *RewardTxProcessor) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*RewardTxProcessor) ProcessRewardTransaction added in v1.1.12

func (rtp *RewardTxProcessor) ProcessRewardTransaction(_ *rewardTx.RewardTx) error

ProcessRewardTransaction does nothing as it is disabled

type ScheduledTxsExecutionHandler added in v1.3.0

type ScheduledTxsExecutionHandler struct {
}

ScheduledTxsExecutionHandler implements ScheduledTxsExecutionHandler interface but does nothing as it is a disabled component

func (*ScheduledTxsExecutionHandler) AddScheduledMiniBlocks added in v1.3.7

func (steh *ScheduledTxsExecutionHandler) AddScheduledMiniBlocks(_ block.MiniBlockSlice)

AddScheduledMiniBlocks does nothing as it is a disabled component

func (*ScheduledTxsExecutionHandler) AddScheduledTx added in v1.3.7

func (steh *ScheduledTxsExecutionHandler) AddScheduledTx(_ []byte, _ data.TransactionHandler) bool

AddScheduledTx does nothing as it is a disabled component

func (*ScheduledTxsExecutionHandler) Execute added in v1.3.0

func (steh *ScheduledTxsExecutionHandler) Execute(_ []byte) error

Execute does nothing as it is a disabled component

func (*ScheduledTxsExecutionHandler) ExecuteAll added in v1.3.0

func (steh *ScheduledTxsExecutionHandler) ExecuteAll(_ func() time.Duration) error

ExecuteAll does nothing as it is a disabled component

func (*ScheduledTxsExecutionHandler) GetScheduledGasAndFees added in v1.3.0

func (steh *ScheduledTxsExecutionHandler) GetScheduledGasAndFees() scheduled.GasAndFees

GetScheduledGasAndFees returns a zero value structure for the gas and fees

func (*ScheduledTxsExecutionHandler) GetScheduledIntermediateTxs added in v1.3.7

func (steh *ScheduledTxsExecutionHandler) GetScheduledIntermediateTxs() map[block.Type][]data.TransactionHandler

GetScheduledIntermediateTxs does nothing as it is a disabled component

func (*ScheduledTxsExecutionHandler) GetScheduledMiniBlocks added in v1.3.7

func (steh *ScheduledTxsExecutionHandler) GetScheduledMiniBlocks() block.MiniBlockSlice

GetScheduledMiniBlocks does nothing as it is a disabled component

func (*ScheduledTxsExecutionHandler) GetScheduledRootHash added in v1.3.0

func (steh *ScheduledTxsExecutionHandler) GetScheduledRootHash() []byte

GetScheduledRootHash does nothing as it is a disabled component

func (*ScheduledTxsExecutionHandler) GetScheduledRootHashForHeader added in v1.3.0

func (steh *ScheduledTxsExecutionHandler) GetScheduledRootHashForHeader(_ []byte) ([]byte, error)

GetScheduledRootHashForHeader does nothing as it is disabled

func (*ScheduledTxsExecutionHandler) Init added in v1.3.0

func (steh *ScheduledTxsExecutionHandler) Init()

Init does nothing as it is a disabled component

func (*ScheduledTxsExecutionHandler) IsInterfaceNil added in v1.3.0

func (steh *ScheduledTxsExecutionHandler) IsInterfaceNil() bool

IsInterfaceNil returns true if underlying object is nil

func (*ScheduledTxsExecutionHandler) IsMiniBlockExecuted added in v1.3.7

func (steh *ScheduledTxsExecutionHandler) IsMiniBlockExecuted(_ []byte) bool

IsMiniBlockExecuted always returns false as it is a disabled component

func (*ScheduledTxsExecutionHandler) IsScheduledTx added in v1.3.0

func (steh *ScheduledTxsExecutionHandler) IsScheduledTx(_ []byte) bool

IsScheduledTx always returns false as it is a disabled component

func (*ScheduledTxsExecutionHandler) RollBackToBlock added in v1.3.0

func (steh *ScheduledTxsExecutionHandler) RollBackToBlock(_ []byte) error

RollBackToBlock does nothing as it is disabled

func (*ScheduledTxsExecutionHandler) SaveState added in v1.3.0

func (steh *ScheduledTxsExecutionHandler) SaveState(
	_ []byte,
	_ *process.ScheduledInfo,
)

SaveState does nothing as it is disabled

func (*ScheduledTxsExecutionHandler) SaveStateIfNeeded added in v1.3.0

func (steh *ScheduledTxsExecutionHandler) SaveStateIfNeeded(_ []byte)

SaveStateIfNeeded does nothing as it is disabled

func (*ScheduledTxsExecutionHandler) SetScheduledGasAndFees added in v1.3.0

func (steh *ScheduledTxsExecutionHandler) SetScheduledGasAndFees(_ scheduled.GasAndFees)

SetScheduledGasAndFees does nothing as it is a disabled component

func (*ScheduledTxsExecutionHandler) SetScheduledInfo added in v1.3.7

func (steh *ScheduledTxsExecutionHandler) SetScheduledInfo(_ *process.ScheduledInfo)

SetScheduledInfo does nothing as it is disabled

func (*ScheduledTxsExecutionHandler) SetScheduledRootHash added in v1.3.0

func (steh *ScheduledTxsExecutionHandler) SetScheduledRootHash(_ []byte)

SetScheduledRootHash does nothing as it is a disabled component

func (*ScheduledTxsExecutionHandler) SetTransactionCoordinator added in v1.3.0

func (steh *ScheduledTxsExecutionHandler) SetTransactionCoordinator(_ process.TransactionCoordinator)

SetTransactionCoordinator does nothing as it is a disabled component

func (*ScheduledTxsExecutionHandler) SetTransactionProcessor added in v1.3.0

func (steh *ScheduledTxsExecutionHandler) SetTransactionProcessor(_ process.TransactionProcessor)

SetTransactionProcessor does nothing as it is a disabled component

type SimpleNFTStorage added in v1.2.35

type SimpleNFTStorage struct {
}

SimpleNFTStorage implements the SimpleNFTStorage interface but does nothing as it is disabled

func (*SimpleNFTStorage) GetESDTNFTTokenOnDestination added in v1.2.35

func (s *SimpleNFTStorage) GetESDTNFTTokenOnDestination(_ vmcommon.UserAccountHandler, _ []byte, _ uint64) (*esdt.ESDigitalToken, bool, error)

GetESDTNFTTokenOnDestination is disabled

func (*SimpleNFTStorage) IsInterfaceNil added in v1.2.35

func (s *SimpleNFTStorage) IsInterfaceNil() bool

IsInterfaceNil return true if underlying object is nil

func (*SimpleNFTStorage) SaveNFTMetaDataToSystemAccount added in v1.2.35

func (s *SimpleNFTStorage) SaveNFTMetaDataToSystemAccount(_ data.TransactionHandler) error

SaveNFTMetaDataToSystemAccount is disabled

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL