Package org.bitcoinj.core
Interface TransactionConfidence.Listener
- All Known Implementing Classes:
NativeTransactionConfidenceListener
- Enclosing class:
- TransactionConfidence
public static interface TransactionConfidence.Listener
A confidence listener is informed when the level of TransactionConfidence is updated by something, like
for example a Wallet. 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 ClassesModifier and TypeInterfaceDescriptionstatic enumAn enum that describes why a transaction confidence listener is being invoked (i.e. -
Method Summary
Modifier and TypeMethodDescriptionvoidonConfidenceChanged(TransactionConfidence confidence, TransactionConfidence.Listener.ChangeReason reason)
-
Method Details
-
onConfidenceChanged
void onConfidenceChanged(TransactionConfidence confidence, TransactionConfidence.Listener.ChangeReason reason)
-