Package org.bitcoinj.wallet
Enum Class Protos.Transaction.Pool
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,Serializable
,Comparable<Protos.Transaction.Pool>
,Constable
- Enclosing class:
- Protos.Transaction
public static enum Protos.Transaction.Pool
extends Enum<Protos.Transaction.Pool>
implements com.google.protobuf.Internal.EnumLite
This is a bitfield oriented enum, with the following bits: bit 0 - spent bit 1 - appears in alt chain bit 2 - appears in best chain bit 3 - double-spent bit 4 - pending (we would like the tx to go into the best chain) Not all combinations are interesting, just the ones actually used in the enum.Protobuf enum
wallet.Transaction.Pool
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDouble-spent by a transaction in the best chainIn non-best chain, not our transactionOur transaction, not in any chainIn non-best chain, our transactionIn best chain, all outputs spentIn best chain, not all outputs spent -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Double-spent by a transaction in the best chainstatic final int
In non-best chain, not our transactionstatic final int
In non-best chain, our transactionstatic final int
Our transaction, not in any chainstatic final int
In best chain, all outputs spentstatic final int
In best chain, not all outputs spent -
Method Summary
Modifier and TypeMethodDescriptionstatic Protos.Transaction.Pool
forNumber
(int value) final int
static com.google.protobuf.Internal.EnumLiteMap<Protos.Transaction.Pool>
static com.google.protobuf.Internal.EnumVerifier
static Protos.Transaction.Pool
valueOf
(int value) Deprecated.static Protos.Transaction.Pool
Returns the enum constant of this class with the specified name.static Protos.Transaction.Pool[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSPENT
In best chain, not all outputs spent
UNSPENT = 4;
-
SPENT
In best chain, all outputs spent
SPENT = 5;
-
INACTIVE
In non-best chain, not our transaction
INACTIVE = 2;
-
DEAD
Double-spent by a transaction in the best chain
DEAD = 10;
-
PENDING
Our transaction, not in any chain
PENDING = 16;
-
PENDING_INACTIVE
In non-best chain, our transaction
PENDING_INACTIVE = 18;
-
-
Field Details
-
UNSPENT_VALUE
public static final int UNSPENT_VALUEIn best chain, not all outputs spent
UNSPENT = 4;
- See Also:
-
SPENT_VALUE
public static final int SPENT_VALUEIn best chain, all outputs spent
SPENT = 5;
- See Also:
-
INACTIVE_VALUE
public static final int INACTIVE_VALUEIn non-best chain, not our transaction
INACTIVE = 2;
- See Also:
-
DEAD_VALUE
public static final int DEAD_VALUEDouble-spent by a transaction in the best chain
DEAD = 10;
- See Also:
-
PENDING_VALUE
public static final int PENDING_VALUEOur transaction, not in any chain
PENDING = 16;
- See Also:
-
PENDING_INACTIVE_VALUE
public static final int PENDING_INACTIVE_VALUEIn non-best chain, our transaction
PENDING_INACTIVE = 18;
- See Also:
-
-
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
-
getNumber
public final int getNumber()- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
-
valueOf
Deprecated.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:
value
- 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
-
forNumber
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<Protos.Transaction.Pool> internalGetValueMap() -
internalGetVerifier
public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
-