Package org.bitcoinj.wallet
Interface RiskAnalysis
-
- All Known Implementing Classes:
DefaultRiskAnalysis
public interface RiskAnalysis
A 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
DefaultRiskAnalysis
to 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 interface
RiskAnalysis.Analyzer
static class
RiskAnalysis.Result
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RiskAnalysis.Result
analyze()
-
-
-
Method Detail
-
analyze
RiskAnalysis.Result analyze()
-
-