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 SummaryEnum Constants Enum Constant Description CHECKPOINTThe message described a block which was invalid according to hard-coded checkpoint blocks.DUPLICATEThe message was relayed multiple times or described an object which is in conflict with another.DUSTThis 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).INSUFFICIENTFEEThe messages described an object which did not have sufficient fee to be relayed further.INVALIDThe message described an invalid objectMALFORMEDThe message was not able to be parsedNONSTANDARDThe message described an object was not standard and was thus not accepted.OBSOLETEThe message was obsolete or described an object which is obsolete (eg unsupported, old version, v1 block)OTHER
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static RejectMessage.RejectCodevalueOf(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- 
MALFORMEDpublic static final RejectMessage.RejectCode MALFORMED The message was not able to be parsed
 - 
INVALIDpublic static final RejectMessage.RejectCode INVALID The message described an invalid object
 - 
OBSOLETEpublic static final RejectMessage.RejectCode OBSOLETE The message was obsolete or described an object which is obsolete (eg unsupported, old version, v1 block)
 - 
DUPLICATEpublic 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.
 - 
NONSTANDARDpublic 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.
 - 
DUSTpublic 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).
 - 
INSUFFICIENTFEEpublic static final RejectMessage.RejectCode INSUFFICIENTFEE The messages described an object which did not have sufficient fee to be relayed further.
 - 
CHECKPOINTpublic static final RejectMessage.RejectCode CHECKPOINT The message described a block which was invalid according to hard-coded checkpoint blocks.
 - 
OTHERpublic static final RejectMessage.RejectCode OTHER 
 
- 
 - 
Method Detail- 
valuespublic 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
 
 - 
valueOfpublic 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 name
- java.lang.NullPointerException- if the argument is null
 
 
- 
 
-