types

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2018 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterBlockHeightLimitedMultiSignatureCondition

func RegisterBlockHeightLimitedMultiSignatureCondition(blockHeight types.BlockHeight)

RegisterBlockHeightLimitedMultiSignatureCondition registers the multisig condition, and thus implicitly the fulfillment as well, in a way that it is limited to a certain block height.

func RegisterTransactionTypesForDevNetwork

func RegisterTransactionTypesForDevNetwork()

RegisterTransactionTypesForDevNetwork registers he transaction controllers for all transaction versions supported on the dev network.

func RegisterTransactionTypesForStandardNetwork

func RegisterTransactionTypesForStandardNetwork()

RegisterTransactionTypesForStandardNetwork registers he transaction controllers for all transaction versions supported on the standard network.

func RegisterTransactionTypesForTestNetwork

func RegisterTransactionTypesForTestNetwork()

RegisterTransactionTypesForTestNetwork registers he transaction controllers for all transaction versions supported on the test network.

Types

type DefaultTransactionController

type DefaultTransactionController struct {
	types.DefaultTransactionController
	TransactionFeeCheckBlockHeight types.BlockHeight
}

DefaultTransactionController wraps around Rivine's DefaultTransactionController, as to ensure that we use check the MinimumTransactionFee, only since a certain block height, and otherwise just ensure it is bigger than 0.

In order to achieve this, the TransactionValidation interface is implemented on top of the regular DefaultTransactionController.

func (DefaultTransactionController) ValidateTransaction

ValidateTransaction implements TransactionValidator.ValidateTransaction

type LegacyTransactionController

type LegacyTransactionController struct {
	types.LegacyTransactionController
	TransactionFeeCheckBlockHeight types.BlockHeight
}

LegacyTransactionController wraps around Rivine's LegacyTransactionController, as to ensure that we use check the MinimumTransactionFee, only since a certain block height, and otherwise just ensure it is bigger than 0.

In order to achieve this, the TransactionValidation interface is implemented on top of the regular LegacyTransactionController.

func (LegacyTransactionController) ValidateTransaction

ValidateTransaction implements TransactionValidator.ValidateTransaction

type MultiSignatureCondition

type MultiSignatureCondition struct {
	types.MultiSignatureCondition
	// contains filtered or unexported fields
}

MultiSignatureCondition wraps around the Rivine-standard MultiSignatureCondition type, as to ensure that in the standard network of tfchain, it can only be used since blockheight 42000

func (MultiSignatureCondition) Equal

Equal implements UnlockCondition.Equal, ensuring the equality works for any expected MultiSig Combination.

func (MultiSignatureCondition) IsStandardCondition

func (msc MultiSignatureCondition) IsStandardCondition(ctx types.ValidationContext) error

IsStandardCondition implements UnlockCondition.IsStandardCondition, wrapping around the internal MultiSignatureCondition's IsStandardCondition check, adding a pre-check of the blockheight

Jump to

Keyboard shortcuts

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