Package org.bitcoinj.core
Enum RejectMessage.RejectCode
- java.lang.Object
-
- java.lang.Enum<RejectMessage.RejectCode>
-
- org.bitcoinj.core.RejectMessage.RejectCode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RejectMessage.RejectCode>
- Enclosing class:
- RejectMessage
public static enum RejectMessage.RejectCode extends java.lang.Enum<RejectMessage.RejectCode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHECKPOINT
The message described a block which was invalid according to hard-coded checkpoint blocks.DUPLICATE
The message was relayed multiple times or described an object which is in conflict with another.DUST
This refers to a specific form of NONSTANDARD transactions, which have an output smaller than some constant defining them as dust (this is no longer used).INSUFFICIENTFEE
The messages described an object which did not have sufficient fee to be relayed further.INVALID
The message described an invalid objectMALFORMED
The message was not able to be parsedNONSTANDARD
The message described an object was not standard and was thus not accepted.OBSOLETE
The message was obsolete or described an object which is obsolete (eg unsupported, old version, v1 block)OTHER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RejectMessage.RejectCode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RejectMessage.RejectCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MALFORMED
public static final RejectMessage.RejectCode MALFORMED
The message was not able to be parsed
-
INVALID
public static final RejectMessage.RejectCode INVALID
The message described an invalid object
-
OBSOLETE
public static final RejectMessage.RejectCode OBSOLETE
The message was obsolete or described an object which is obsolete (eg unsupported, old version, v1 block)
-
DUPLICATE
public static final RejectMessage.RejectCode DUPLICATE
The message was relayed multiple times or described an object which is in conflict with another. This message can describe errors in protocol implementation or the presence of an attempt to DOUBLE SPEND.
-
NONSTANDARD
public static final RejectMessage.RejectCode NONSTANDARD
The message described an object was not standard and was thus not accepted. Bitcoin Core has a concept of standard transaction forms, which describe scripts and encodings which it is willing to relay further. Other transactions are neither relayed nor mined, though they are considered valid if they appear in a block.
-
DUST
public static final RejectMessage.RejectCode DUST
This refers to a specific form of NONSTANDARD transactions, which have an output smaller than some constant defining them as dust (this is no longer used).
-
INSUFFICIENTFEE
public static final RejectMessage.RejectCode INSUFFICIENTFEE
The messages described an object which did not have sufficient fee to be relayed further.
-
CHECKPOINT
public static final RejectMessage.RejectCode CHECKPOINT
The message described a block which was invalid according to hard-coded checkpoint blocks.
-
OTHER
public static final RejectMessage.RejectCode OTHER
-
-
Method Detail
-
values
public static RejectMessage.RejectCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RejectMessage.RejectCode c : RejectMessage.RejectCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RejectMessage.RejectCode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-