disabled

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMessageSignVerifier

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

type FeeHandler

type FeeHandler struct {
}

FeeHandler represents a disabled fee handler implementation

func (*FeeHandler) CheckValidityTxValues

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

CheckValidityTxValues returns nil

func (*FeeHandler) ComputeFee

func (fh *FeeHandler) ComputeFee(_ process.TransactionWithFeeHandler) *big.Int

ComputeFee returns 0

func (*FeeHandler) ComputeGasLimit

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

ComputeGasLimit returns 0

func (*FeeHandler) CreateBlockStarted

func (fh *FeeHandler) CreateBlockStarted()

CreateBlockStarted does nothing

func (*FeeHandler) DeveloperPercentage

func (fh *FeeHandler) DeveloperPercentage() float64

DeveloperPercentage returns 0

func (*FeeHandler) GetAccumulatedFees

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

GetAccumulatedFees returns 0

func (*FeeHandler) GetDeveloperFees

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

GetDeveloperFees -

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 return max uint64

func (*FeeHandler) MinGasPrice

func (fh *FeeHandler) MinGasPrice() uint64

MinGasPrice returns 0

func (*FeeHandler) ProcessTransactionFee

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

ProcessTransactionFee does nothing

func (*FeeHandler) RevertFees

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

RevertFees does nothing

type RequestHandler

type RequestHandler struct {
}

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

func (*RequestHandler) GetNumPeersToQuery

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

GetNumPeersToQuery -

func (*RequestHandler) IsInterfaceNil

func (r *RequestHandler) IsInterfaceNil() bool

IsInterfaceNil -

func (*RequestHandler) RequestInterval

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

RequestInterval -

func (*RequestHandler) RequestMetaHeader

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

RequestMetaHeader -

func (*RequestHandler) RequestMetaHeaderByNonce

func (r *RequestHandler) RequestMetaHeaderByNonce(_ uint64)

RequestMetaHeaderByNonce -

func (*RequestHandler) RequestMiniBlock

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

RequestMiniBlock -

func (*RequestHandler) RequestMiniBlocks

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

RequestMiniBlocks -

func (*RequestHandler) RequestRewardTransactions

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

RequestRewardTransactions -

func (*RequestHandler) RequestShardHeader

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

RequestShardHeader -

func (*RequestHandler) RequestShardHeaderByNonce

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

RequestShardHeaderByNonce -

func (*RequestHandler) RequestStartOfEpochMetaBlock

func (r *RequestHandler) RequestStartOfEpochMetaBlock(_ uint32)

RequestStartOfEpochMetaBlock -

func (*RequestHandler) RequestTransaction

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

RequestTransaction -

func (*RequestHandler) RequestTrieNodes

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

RequestTrieNodes -

func (*RequestHandler) RequestUnsignedTransactions

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

RequestUnsignedTransactions -

func (*RequestHandler) SetEpoch

func (r *RequestHandler) SetEpoch(_ uint32)

SetEpoch -

func (*RequestHandler) SetNumPeersToQuery

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

SetNumPeersToQuery -

Jump to

Keyboard shortcuts

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