Package org.bitcoinj.core
Enum Class TransactionConfidence.Listener.ChangeReason
java.lang.Object
java.lang.Enum<TransactionConfidence.Listener.ChangeReason>
org.bitcoinj.core.TransactionConfidence.Listener.ChangeReason
- All Implemented Interfaces:
Serializable,Comparable<TransactionConfidence.Listener.ChangeReason>,Constable
- Enclosing interface:
- TransactionConfidence.Listener
public static enum TransactionConfidence.Listener.ChangeReason
extends Enum<TransactionConfidence.Listener.ChangeReason>
An enum that describes why a transaction confidence listener is being invoked (i.e. the class of change).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOccurs when a transaction that is in the best known block chain gets buried by another block.Occurs when a pending transaction (not in the chain) was announced by another connected peers.Occurs when the type returned byTransactionConfidence.getConfidenceType()has changed. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TYPE
Occurs when the type returned byTransactionConfidence.getConfidenceType()has changed. For example, if a PENDING transaction changes to BUILDING or DEAD, then this reason will be given. It's a high level summary. -
DEPTH
Occurs when a transaction that is in the best known block chain gets buried by another block. If you're waiting for a certain number of confirmations, this is the reason to watch out for. -
SEEN_PEERS
Occurs when a pending transaction (not in the chain) was announced by another connected peers. By watching the number of peers that announced a transaction go up, you can see whether it's being accepted by the network or not. If all your peers announce, it's a pretty good bet the transaction is considered relayable and has thus reached the miners.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-