Documentation ¶
Index ¶
- func GetDevnetTransactionValidators() []modules.TransactionValidationFunction
- func GetDevnetTransactionVersionMappedValidators() map[types.TransactionVersion][]modules.TransactionValidationFunction
- func GetStandardTransactionValidators() []modules.TransactionValidationFunction
- func GetStandardTransactionVersionMappedValidators() map[types.TransactionVersion][]modules.TransactionValidationFunction
- func GetTestnetTransactionValidators() []modules.TransactionValidationFunction
- func GetTestnetTransactionVersionMappedValidators() map[types.TransactionVersion][]modules.TransactionValidationFunction
- type DisableTransactionSinceValidator
- type MinimumMinerFeeValidator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDevnetTransactionValidators ¶
func GetDevnetTransactionValidators() []modules.TransactionValidationFunction
func GetDevnetTransactionVersionMappedValidators ¶
func GetDevnetTransactionVersionMappedValidators() map[types.TransactionVersion][]modules.TransactionValidationFunction
func GetStandardTransactionValidators ¶
func GetStandardTransactionValidators() []modules.TransactionValidationFunction
func GetStandardTransactionVersionMappedValidators ¶
func GetStandardTransactionVersionMappedValidators() map[types.TransactionVersion][]modules.TransactionValidationFunction
func GetTestnetTransactionValidators ¶
func GetTestnetTransactionValidators() []modules.TransactionValidationFunction
func GetTestnetTransactionVersionMappedValidators ¶
func GetTestnetTransactionVersionMappedValidators() map[types.TransactionVersion][]modules.TransactionValidationFunction
Types ¶
type DisableTransactionSinceValidator ¶
type DisableTransactionSinceValidator struct {
MinimumBlockHeight types.BlockHeight
}
DisableTransactionSinceValidator is a validator which allows to no longer allow a transaction since a specific block height
func (*DisableTransactionSinceValidator) Validate ¶
func (validator *DisableTransactionSinceValidator) Validate(tx modules.ConsensusTransaction, ctx types.TransactionValidationContext) error
Validate is a validator function that checks if the transaction is still allowed in the current chain.
type MinimumMinerFeeValidator ¶
type MinimumMinerFeeValidator struct {
MinimumBlockHeight types.BlockHeight
}
MinimumMinerFeeValidator is a validator which allows to check the minimum miner fees (and whether they are available) only since a specific (block) height.
func (*MinimumMinerFeeValidator) Validate ¶
func (validator *MinimumMinerFeeValidator) Validate(tx modules.ConsensusTransaction, ctx types.TransactionValidationContext) error
Validate is a validator function that checks if all miner fees are valid. Until the minimum block height 0 fees are allowed, afterwards the minimum fee is checked
Click to show internal directories.
Click to hide internal directories.