Documentation ¶
Index ¶
- func NewMessageSignVerifier(kg crypto.KeyGenerator) (*messageSignVerifier, error)
- type BalanceComputationHandler
- func (b *BalanceComputationHandler) AddBalanceToAddress(_ []byte, _ *big.Int) bool
- func (b *BalanceComputationHandler) AddressHasEnoughBalance(_ []byte, _ *big.Int) bool
- func (b *BalanceComputationHandler) Init()
- func (b *BalanceComputationHandler) IsAddressSet(_ []byte) bool
- func (b *BalanceComputationHandler) IsInterfaceNil() bool
- func (b *BalanceComputationHandler) SetBalanceToAddress(_ []byte, _ *big.Int)
- func (b *BalanceComputationHandler) SubBalanceFromAddress(_ []byte, _ *big.Int) bool
- type BlockSizeComputationHandler
- func (b *BlockSizeComputationHandler) AddNumMiniBlocks(_ int)
- func (b *BlockSizeComputationHandler) AddNumTxs(_ int)
- func (b *BlockSizeComputationHandler) Init()
- func (b *BlockSizeComputationHandler) IsInterfaceNil() bool
- func (b *BlockSizeComputationHandler) IsMaxBlockSizeReached(_ int, _ int) bool
- func (b *BlockSizeComputationHandler) IsMaxBlockSizeWithoutThrottleReached(_ int, _ int) bool
- type BlockTracker
- type FeeHandler
- func (fh *FeeHandler) CheckValidityTxValues(_ process.TransactionWithFeeHandler) error
- func (fh *FeeHandler) ComputeFeeForProcessing(_ process.TransactionWithFeeHandler, _ uint64) *big.Int
- func (fh *FeeHandler) ComputeGasLimit(_ process.TransactionWithFeeHandler) uint64
- func (fh *FeeHandler) ComputeMoveBalanceFee(_ process.TransactionWithFeeHandler) *big.Int
- func (fh *FeeHandler) ComputeTxFee(_ process.TransactionWithFeeHandler) *big.Int
- func (fh *FeeHandler) CreateBlockStarted()
- func (fh *FeeHandler) DeveloperPercentage() float64
- func (fh *FeeHandler) GasPriceModifier() float64
- func (fh *FeeHandler) GenesisTotalSupply() *big.Int
- func (fh *FeeHandler) GetAccumulatedFees() *big.Int
- func (fh *FeeHandler) GetDeveloperFees() *big.Int
- func (fh *FeeHandler) IsInterfaceNil() bool
- func (fh *FeeHandler) MaxGasLimitPerBlock(uint32) uint64
- func (fh *FeeHandler) MinGasPrice() uint64
- func (fh *FeeHandler) ProcessTransactionFee(_ *big.Int, _ *big.Int, _ []byte)
- func (fh *FeeHandler) RevertFees(_ [][]byte)
- type Rater
- type RequestHandler
- func (r *RequestHandler) GetNumPeersToQuery(_ string) (int, int, error)
- func (r *RequestHandler) IsInterfaceNil() bool
- func (r *RequestHandler) RequestInterval() time.Duration
- func (r *RequestHandler) RequestMetaHeader(_ []byte)
- func (r *RequestHandler) RequestMetaHeaderByNonce(_ uint64)
- func (r *RequestHandler) RequestMiniBlock(_ uint32, _ []byte)
- func (r *RequestHandler) RequestMiniBlocks(_ uint32, _ [][]byte)
- func (r *RequestHandler) RequestRewardTransactions(_ uint32, _ [][]byte)
- func (r *RequestHandler) RequestShardHeader(_ uint32, _ []byte)
- func (r *RequestHandler) RequestShardHeaderByNonce(_ uint32, _ uint64)
- func (r *RequestHandler) RequestStartOfEpochMetaBlock(_ uint32)
- func (r *RequestHandler) RequestTransaction(_ uint32, _ [][]byte)
- func (r *RequestHandler) RequestTrieNodes(_ uint32, _ [][]byte, _ string)
- func (r *RequestHandler) RequestUnsignedTransactions(_ uint32, _ [][]byte)
- func (r *RequestHandler) SetEpoch(_ uint32)
- func (r *RequestHandler) SetNumPeersToQuery(_ string, _ int, _ int) error
- type RewardTxProcessor
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
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) ComputeFeeForProcessing ¶ added in v1.1.15
func (fh *FeeHandler) ComputeFeeForProcessing(_ process.TransactionWithFeeHandler, _ uint64) *big.Int
ComputeFeeForProcessing returns 0
func (*FeeHandler) ComputeGasLimit ¶
func (fh *FeeHandler) ComputeGasLimit(_ process.TransactionWithFeeHandler) uint64
ComputeGasLimit returns 0
func (*FeeHandler) ComputeMoveBalanceFee ¶ added in v1.1.1
func (fh *FeeHandler) ComputeMoveBalanceFee(_ process.TransactionWithFeeHandler) *big.Int
ComputeMoveBalanceFee returns 0
func (*FeeHandler) ComputeTxFee ¶ added in v1.1.1
func (fh *FeeHandler) ComputeTxFee(_ process.TransactionWithFeeHandler) *big.Int
ComputeTxFee 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) 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 -
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) ProcessTransactionFee ¶
ProcessTransactionFee does nothing
func (*FeeHandler) RevertFees ¶
func (fh *FeeHandler) RevertFees(_ [][]byte)
RevertFees does nothing
type Rater ¶ added in v1.1.1
type Rater struct { }
Rater implements the Rater interface, it does nothing as it is disabled
func (*Rater) IsInterfaceNil ¶ added in v1.1.1
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) 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) SetNumPeersToQuery ¶
func (r *RequestHandler) SetNumPeersToQuery(_ string, _ int, _ int) error
SetNumPeersToQuery -
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