|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.bitcoin.wallet.DefaultRiskAnalysis
public class DefaultRiskAnalysis
The default risk analysis. Currently, it only is concerned with whether a tx/dependency is non-final or not. Outside of specialised protocols you should not encounter non-final transactions.
| Nested Class Summary | |
|---|---|
static class |
DefaultRiskAnalysis.Analyzer
|
| Nested classes/interfaces inherited from interface com.google.bitcoin.wallet.RiskAnalysis |
|---|
RiskAnalysis.Result |
| Field Summary | |
|---|---|
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
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Method Detail |
|---|
public RiskAnalysis.Result analyze()
analyze in interface RiskAnalysispublic 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()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||