com.google.bitcoin.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.
onConfidenceChanged
void onConfidenceChanged(Transaction tx,
TransactionConfidence.Listener.ChangeReason reason)
Copyright © 2014. All rights reserved.