public class DefaultRiskAnalysis extends Object implements RiskAnalysis
Modifier and Type | Class and Description |
---|---|
static class |
DefaultRiskAnalysis.Analyzer |
RiskAnalysis.Result
Modifier and Type | Field and Description |
---|---|
protected boolean |
analyzed |
protected List<Transaction> |
dependencies |
static DefaultRiskAnalysis.Analyzer |
FACTORY |
static BigInteger |
MIN_ANALYSIS_NONDUST_OUTPUT
Any standard output smaller than this value (in satoshis) will be considered risky, as it's most likely be
rejected by the network.
|
protected Transaction |
nonFinal |
protected Transaction |
tx |
protected Wallet |
wallet |
Modifier and Type | Method and Description |
---|---|
RiskAnalysis.Result |
analyze() |
Transaction |
getNonFinal()
Returns the transaction that was found to be non-final, or null.
|
Transaction |
getNonStandard()
Returns the transaction that was found to be non-standard, or null.
|
Transaction |
isStandard(Transaction tx)
Checks if a transaction is considered "standard" by the reference client's IsStandardTx and AreInputsStandard
functions.
|
String |
toString() |
public static final BigInteger MIN_ANALYSIS_NONDUST_OUTPUT
Transaction.MIN_NONDUST_OUTPUT
because of an upcoming fee change in Bitcoin Core 0.9.protected final Transaction tx
protected final List<Transaction> dependencies
protected final Wallet wallet
protected Transaction nonFinal
protected boolean analyzed
public static DefaultRiskAnalysis.Analyzer FACTORY
public RiskAnalysis.Result analyze()
analyze
in interface RiskAnalysis
public Transaction isStandard(Transaction tx)
Checks if a transaction is considered "standard" by the reference client's IsStandardTx and AreInputsStandard functions.
Note that this method currently only implements a minimum of checks. More to be added later.
@Nullable public Transaction getNonStandard()
@Nullable public Transaction getNonFinal()
Copyright © 2014. All rights reserved.