Package org.bitcoinj.core
Enum Class RejectMessage.RejectCode
- All Implemented Interfaces:
Serializable
,Comparable<RejectMessage.RejectCode>
,Constable
- Enclosing class:
- RejectMessage
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe message described a block which was invalid according to hard-coded checkpoint blocks.The message was relayed multiple times or described an object which is in conflict with another.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).The messages described an object which did not have sufficient fee to be relayed further.The message described an invalid objectThe message was not able to be parsedThe message described an object was not standard and was thus not accepted.The message was obsolete or described an object which is obsolete (e.g. -
Method Summary
Modifier and TypeMethodDescriptionstatic RejectMessage.RejectCode
Returns the enum constant of this class with the specified name.static RejectMessage.RejectCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MALFORMED
The message was not able to be parsed -
INVALID
The message described an invalid object -
OBSOLETE
The message was obsolete or described an object which is obsolete (e.g. unsupported, old version, v1 block) -
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
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
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. -
CHECKPOINT
The message described a block which was invalid according to hard-coded checkpoint blocks. -
OTHER
-
-
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
-