Package org.bitcoinj.wallet
Interface RiskAnalysis
-
- All Known Implementing Classes:
DefaultRiskAnalysis
public interface RiskAnalysisA RiskAnalysis represents an analysis of how likely it is that a transaction (and its dependencies) represents a possible double spending attack. The wallet will create these to decide whether or not to accept a pending transaction. Look at
DefaultRiskAnalysisto see what is currently considered risky.The intention here is that implementing classes can expose more information and detail about the result, for app developers. The core code needs only to know whether it's OK or not.
A factory interface is provided. The wallet will use this to analyze new pending transactions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceRiskAnalysis.Analyzerstatic classRiskAnalysis.Result
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RiskAnalysis.Resultanalyze()
-
-
-
Method Detail
-
analyze
RiskAnalysis.Result analyze()
-
-