Package org.bitcoinj.core
Interface TransactionConfidence.Listener
-
- All Known Implementing Classes:
NativeTransactionConfidenceListener
- Enclosing class:
- TransactionConfidence
public static interface TransactionConfidence.ListenerA confidence listener is informed when the level of
TransactionConfidenceis updated by something, like for example aWallet. You can add listeners to update your user interface or manage your order tracking system when confidence levels pass a certain threshold. Note that confidence can go down as well as up. For example, this can happen if somebody is doing a double-spend attack against you. Whilst it's unlikely, your code should be able to handle that in order to be correct.During listener execution, it's safe to remove the current listener but not others.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTransactionConfidence.Listener.ChangeReasonAn enum that describes why a transaction confidence listener is being invoked (i.e.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonConfidenceChanged(TransactionConfidence confidence, TransactionConfidence.Listener.ChangeReason reason)
-
-
-
Method Detail
-
onConfidenceChanged
void onConfidenceChanged(TransactionConfidence confidence, TransactionConfidence.Listener.ChangeReason reason)
-
-