public static enum TransactionConfidence.ConfidenceType extends java.lang.Enum<TransactionConfidence.ConfidenceType>
| Enum Constant and Description |
|---|
BUILDING
If BUILDING, then the transaction is included in the best chain and your confidence in it is increasing.
|
DEAD
If DEAD, then it means the transaction won't confirm unless there is another re-org,
because some other transaction is spending one of its inputs.
|
IN_CONFLICT
If IN_CONFLICT, then it means there is another transaction (or several other transactions) spending one
(or several) of its inputs but nor this transaction nor the other/s transaction/s are included in the best chain.
|
PENDING
If PENDING, then the transaction is unconfirmed and should be included shortly, as long as it is being
announced and is considered valid by the network.
|
UNKNOWN
If a transaction hasn't been broadcast yet, or there's no record of it, its confidence is UNKNOWN.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue() |
static TransactionConfidence.ConfidenceType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransactionConfidence.ConfidenceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionConfidence.ConfidenceType BUILDING
public static final TransactionConfidence.ConfidenceType PENDING
PeerGroup using PeerGroup.addWallet(Wallet).
You can estimate how likely the transaction is to be included by connecting to a bunch of nodes then measuring
how many announce it, using TransactionConfidence.numBroadcastPeers().
Or if you saw it from a trusted peer, you can assume it's valid and will get mined sooner or later as well.public static final TransactionConfidence.ConfidenceType DEAD
public static final TransactionConfidence.ConfidenceType IN_CONFLICT
public static final TransactionConfidence.ConfidenceType UNKNOWN
public static TransactionConfidence.ConfidenceType[] values()
for (TransactionConfidence.ConfidenceType c : TransactionConfidence.ConfidenceType.values()) System.out.println(c);
public static TransactionConfidence.ConfidenceType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getValue()