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.
Modifier and Type | Interface and Description |
---|---|
static class |
TransactionConfidence.Listener.ChangeReason
An enum that describes why a transaction confidence listener is being invoked (i.e.
|
Modifier and Type | Method and Description |
---|---|
void |
onConfidenceChanged(Transaction tx,
TransactionConfidence.Listener.ChangeReason reason) |
void onConfidenceChanged(Transaction tx, TransactionConfidence.Listener.ChangeReason reason)
Copyright © 2014. All rights reserved.