public static enum Protos.Transaction.Pool extends java.lang.Enum<Protos.Transaction.Pool> implements com.google.protobuf.ProtocolMessageEnum
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| Enum Constant and Description |
|---|
DEAD
Double-spent by a transaction in the best chain
|
INACTIVE
In non-best chain, not our transaction
|
PENDING
Our transaction, not in any chain
|
PENDING_INACTIVE
In non-best chain, our transaction
|
SPENT
In best chain, all outputs spent
|
UNSPENT
In best chain, not all outputs spent
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DEAD_VALUE
Double-spent by a transaction in the best chain
|
static int |
INACTIVE_VALUE
In non-best chain, not our transaction
|
static int |
PENDING_INACTIVE_VALUE
In non-best chain, our transaction
|
static int |
PENDING_VALUE
Our transaction, not in any chain
|
static int |
SPENT_VALUE
In best chain, all outputs spent
|
static int |
UNSPENT_VALUE
In best chain, not all outputs spent
|
| Modifier and Type | Method and Description |
|---|---|
static Protos.Transaction.Pool |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<Protos.Transaction.Pool> |
internalGetValueMap() |
static Protos.Transaction.Pool |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Protos.Transaction.Pool |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Protos.Transaction.Pool |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Protos.Transaction.Pool[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Protos.Transaction.Pool UNSPENT
In best chain, not all outputs spent
UNSPENT = 4;public static final Protos.Transaction.Pool SPENT
In best chain, all outputs spent
SPENT = 5;public static final Protos.Transaction.Pool INACTIVE
In non-best chain, not our transaction
INACTIVE = 2;public static final Protos.Transaction.Pool DEAD
Double-spent by a transaction in the best chain
DEAD = 10;public static final Protos.Transaction.Pool PENDING
Our transaction, not in any chain
PENDING = 16;public static final Protos.Transaction.Pool PENDING_INACTIVE
In non-best chain, our transaction
PENDING_INACTIVE = 18;public static final int UNSPENT_VALUE
In best chain, not all outputs spent
UNSPENT = 4;public static final int SPENT_VALUE
In best chain, all outputs spent
SPENT = 5;public static final int INACTIVE_VALUE
In non-best chain, not our transaction
INACTIVE = 2;public static final int DEAD_VALUE
Double-spent by a transaction in the best chain
DEAD = 10;public static final int PENDING_VALUE
Our transaction, not in any chain
PENDING = 16;public static final int PENDING_INACTIVE_VALUE
In non-best chain, our transaction
PENDING_INACTIVE = 18;public static Protos.Transaction.Pool[] values()
for (Protos.Transaction.Pool c : Protos.Transaction.Pool.values()) System.out.println(c);
public static Protos.Transaction.Pool 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 final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static Protos.Transaction.Pool valueOf(int value)
forNumber(int) instead.public static Protos.Transaction.Pool forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Protos.Transaction.Pool> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Protos.Transaction.Pool valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)