disabled

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HardforkTrigger

func HardforkTrigger() *hardforkTrigger

HardforkTrigger returns a disabled hardforkTrigger

func NewDisabledGlobalSettingHandler

func NewDisabledGlobalSettingHandler() *disabledGlobalSettingsHandler

NewDisabledGlobalSettingHandler returns a new instance of disabledGlobalSettingsHandler

func NewPreferredPeersHolder added in v1.6.0

func NewPreferredPeersHolder() *preferredPeersHolder

NewPreferredPeersHolder returns a new instance of preferredPeersHolder

Types

type MessageSigner added in v1.6.0

type MessageSigner struct {
}

MessageSigner implements P2PSigningHandler interface but it does nothing as it is disabled

func (*MessageSigner) Deserialize added in v1.6.0

func (ms *MessageSigner) Deserialize(messagesBytes []byte) ([]p2p.MessageP2P, error)

Deserialize does nothing

func (*MessageSigner) IsInterfaceNil added in v1.6.0

func (ms *MessageSigner) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*MessageSigner) Serialize added in v1.6.0

func (ms *MessageSigner) Serialize(messages []p2p.MessageP2P) ([]byte, error)

Serialize does nothing

func (*MessageSigner) Verify added in v1.6.0

func (ms *MessageSigner) Verify(message p2p.MessageP2P) error

Verify does nothing

type TxCoordinator

type TxCoordinator struct {
}

TxCoordinator implements the TransactionCoordinator interface but does nothing as it is disabled

func (*TxCoordinator) AddIntermediateTransactions

func (txCoordinator *TxCoordinator) AddIntermediateTransactions(_ map[block.Type][]data.TransactionHandler) error

AddIntermediateTransactions does nothing as it is disabled

func (*TxCoordinator) AddTransactions

func (txCoordinator *TxCoordinator) AddTransactions(_ []data.TransactionHandler, _ block.Type)

AddTransactions does nothing as it is disabled

func (*TxCoordinator) AddTxsFromMiniBlocks

func (txCoordinator *TxCoordinator) AddTxsFromMiniBlocks(_ block.MiniBlockSlice)

AddTxsFromMiniBlocks does nothing as it is disabled

func (*TxCoordinator) ComputeTransactionType

func (txCoordinator *TxCoordinator) ComputeTransactionType(_ data.TransactionHandler) (process.TransactionType, process.TransactionType)

ComputeTransactionType does nothing as it is disabled

func (*TxCoordinator) CreateBlockStarted

func (txCoordinator *TxCoordinator) CreateBlockStarted()

CreateBlockStarted does nothing as it is disabled

func (*TxCoordinator) CreateMarshalizedData

func (txCoordinator *TxCoordinator) CreateMarshalizedData(_ *block.Body) map[string][][]byte

CreateMarshalizedData does nothing as it is disabled

func (*TxCoordinator) CreateMbsAndProcessCrossShardTransactionsDstMe

func (txCoordinator *TxCoordinator) CreateMbsAndProcessCrossShardTransactionsDstMe(
	_ data.HeaderHandler,
	_ map[string]*processedMb.ProcessedMiniBlockInfo,
	_ func() bool,
	_ func() bool,
	_ bool,
) (block.MiniBlockSlice, uint32, bool, error)

CreateMbsAndProcessCrossShardTransactionsDstMe does nothing as it is disabled

func (*TxCoordinator) CreateMbsAndProcessTransactionsFromMe

func (txCoordinator *TxCoordinator) CreateMbsAndProcessTransactionsFromMe(_ func() bool, _ []byte) block.MiniBlockSlice

CreateMbsAndProcessTransactionsFromMe does nothing as it is disabled

func (*TxCoordinator) CreatePostProcessMiniBlocks

func (txCoordinator *TxCoordinator) CreatePostProcessMiniBlocks() block.MiniBlockSlice

CreatePostProcessMiniBlocks does nothing as it is disabled

func (*TxCoordinator) CreateReceiptsHash

func (txCoordinator *TxCoordinator) CreateReceiptsHash() ([]byte, error)

CreateReceiptsHash does nothing as it is disabled

func (*TxCoordinator) GetAllCurrentLogs

func (txCoordinator *TxCoordinator) GetAllCurrentLogs() []*data.LogData

GetAllCurrentLogs returns empty logs map

func (*TxCoordinator) GetAllCurrentUsedTxs

func (txCoordinator *TxCoordinator) GetAllCurrentUsedTxs(_ block.Type) map[string]data.TransactionHandler

GetAllCurrentUsedTxs does nothing as it is disabled

func (*TxCoordinator) GetAllIntermediateTxs

func (txCoordinator *TxCoordinator) GetAllIntermediateTxs() map[block.Type]map[string]data.TransactionHandler

GetAllIntermediateTxs does nothing as it is disabled

func (*TxCoordinator) GetCreatedInShardMiniBlocks

func (txCoordinator *TxCoordinator) GetCreatedInShardMiniBlocks() []*block.MiniBlock

GetCreatedInShardMiniBlocks returns nil as is it disabled

func (*TxCoordinator) IsDataPreparedForProcessing

func (txCoordinator *TxCoordinator) IsDataPreparedForProcessing(_ func() time.Duration) error

IsDataPreparedForProcessing does nothing as it is disabled

func (*TxCoordinator) IsInterfaceNil

func (txCoordinator *TxCoordinator) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*TxCoordinator) ProcessBlockTransaction

func (txCoordinator *TxCoordinator) ProcessBlockTransaction(_ data.HeaderHandler, _ *block.Body, _ func() time.Duration) error

ProcessBlockTransaction does nothing as it is disabled

func (*TxCoordinator) RemoveBlockDataFromPool

func (txCoordinator *TxCoordinator) RemoveBlockDataFromPool(_ *block.Body) error

RemoveBlockDataFromPool does nothing as it is disabled

func (*TxCoordinator) RemoveTxsFromPool

func (txCoordinator *TxCoordinator) RemoveTxsFromPool(_ *block.Body) error

RemoveTxsFromPool does nothing as it is disabled

func (*TxCoordinator) RequestBlockTransactions

func (txCoordinator *TxCoordinator) RequestBlockTransactions(_ *block.Body)

RequestBlockTransactions does nothing as it is disabled

func (*TxCoordinator) RequestMiniBlocksAndTransactions added in v1.6.3

func (txCoordinator *TxCoordinator) RequestMiniBlocksAndTransactions(_ data.HeaderHandler)

RequestMiniBlocksAndTransactions does nothing as it is disabled

func (*TxCoordinator) RestoreBlockDataFromStorage

func (txCoordinator *TxCoordinator) RestoreBlockDataFromStorage(_ *block.Body) (int, error)

RestoreBlockDataFromStorage does nothing as it is disabled

func (*TxCoordinator) SaveTxsToStorage

func (txCoordinator *TxCoordinator) SaveTxsToStorage(_ *block.Body)

SaveTxsToStorage does nothing as it is disabled

func (*TxCoordinator) VerifyCreatedBlockTransactions

func (txCoordinator *TxCoordinator) VerifyCreatedBlockTransactions(_ data.HeaderHandler, _ *block.Body) error

VerifyCreatedBlockTransactions does nothing as it is disabled

func (*TxCoordinator) VerifyCreatedMiniBlocks

func (txCoordinator *TxCoordinator) VerifyCreatedMiniBlocks(_ data.HeaderHandler, _ *block.Body) error

VerifyCreatedMiniBlocks does nothing as it is disabled

type TxProcessor

type TxProcessor struct {
}

TxProcessor implements the TransactionProcessor interface but does nothing as it is disabled

func (*TxProcessor) IsInterfaceNil

func (txProc *TxProcessor) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*TxProcessor) ProcessTransaction

func (txProc *TxProcessor) ProcessTransaction(_ *transaction.Transaction) (vmcommon.ReturnCode, error)

ProcessTransaction does nothing as it is disabled

func (*TxProcessor) VerifyTransaction

func (txProc *TxProcessor) VerifyTransaction(_ *transaction.Transaction) error

VerifyTransaction does nothing as it is disabled

Jump to

Keyboard shortcuts

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