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 object
      MALFORMED
      The message was not able to be parsed
      NONSTANDARD
      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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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.
    • 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 name
        java.lang.NullPointerException - if the argument is null