consensus

package
v1.2.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDevnetTransactionValidators

func GetDevnetTransactionValidators() []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

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

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

Jump to

Keyboard shortcuts

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