Enum Class RejectMessage.RejectCode

java.lang.Object
java.lang.Enum<RejectMessage.RejectCode>
org.bitcoinj.core.RejectMessage.RejectCode
All Implemented Interfaces:
Serializable, Comparable<RejectMessage.RejectCode>, Constable
Enclosing class:
RejectMessage

public static enum RejectMessage.RejectCode extends Enum<RejectMessage.RejectCode>
  • Enum Constant Details

    • 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 (e.g. 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 Details

    • values

      public static RejectMessage.RejectCode[] 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

      public static RejectMessage.RejectCode valueOf(String name)
      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 name
      NullPointerException - if the argument is null