C# Class Paymetheus.Bitcoin.TransactionRules

Show file Open project: btcsuite/Paymetheus

Public Properties

Property Type Description
MaxOutputValue Amount

Public Methods

Method Description
CheckSanity ( Transaction tx ) : void
IsSaneOutputValue ( Amount a ) : bool

Perform a preliminary check that the Amount is within the bounds of valid transaction output values. Additional checks are required before authoring a valid transaction to ensure the total output amount does not exceed the total previous output amount referenced by the inputs.

Private Methods

Method Description
CheckCoinbaseSignatureScript ( Transaction coinbaseInput ) : void
CheckHasInputsAndOutputs ( Transaction tx ) : void
CheckNonCoinbaseInputs ( Transaction tx ) : void
CheckOutputValueSanity ( Transaction tx ) : void

Method Details

CheckSanity() public static method

public static CheckSanity ( Transaction tx ) : void
tx Transaction
return void

IsSaneOutputValue() public static method

Perform a preliminary check that the Amount is within the bounds of valid transaction output values. Additional checks are required before authoring a valid transaction to ensure the total output amount does not exceed the total previous output amount referenced by the inputs.
public static IsSaneOutputValue ( Amount a ) : bool
a Amount
return bool

Property Details

MaxOutputValue public static property

public static Amount,Paymetheus.Bitcoin MaxOutputValue
return Amount