Class DefaultRiskAnalysis

  • All Implemented Interfaces:

    public class DefaultRiskAnalysis
    extends java.lang.Object
    implements RiskAnalysis

    The default risk analysis. Currently, it only is concerned with whether a tx/dependency is non-final or not, and whether a tx/dependency violates the dust rules. Outside of specialised protocols you should not encounter non-final transactions.

    • Method Detail

      • isStandard

        public static DefaultRiskAnalysis.RuleViolation isStandard​(Transaction tx)

        Checks if a transaction is considered "standard" by Bitcoin Core's IsStandardTx and AreInputsStandard functions.

        Note that this method currently only implements a minimum of checks. More to be added later.

      • getNonStandard

        public Transaction getNonStandard()
        Returns the transaction that was found to be non-standard, or null.
      • getNonFinal

        public Transaction getNonFinal()
        Returns the transaction that was found to be non-final, or null.
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object