Documentation
¶
Index ¶
- func RegisterBlockHeightLimitedMultiSignatureCondition(blockHeight types.BlockHeight)
- func RegisterTransactionTypesForDevNetwork()
- func RegisterTransactionTypesForStandardNetwork()
- func RegisterTransactionTypesForTestNetwork()
- type DefaultTransactionController
- type LegacyTransactionController
- type MultiSignatureCondition
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 ¶
func (dtc DefaultTransactionController) ValidateTransaction(t types.Transaction, ctx types.ValidationContext, constants types.TransactionValidationConstants) error
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 ¶
func (ltc LegacyTransactionController) ValidateTransaction(t types.Transaction, ctx types.ValidationContext, constants types.TransactionValidationConstants) error
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 ¶
func (msc MultiSignatureCondition) Equal(c types.UnlockCondition) bool
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