class

Bitcoin::Messages::Reject

Inherits Bitcoin::Message < Bitcoin::Structure < Reference < Object

Constants

CCODES = {1 => "REJECT_MALFORMED", 16 => "REJECT_INVALID", 17 => "REJECT_OBSOLETE", 18 => "REJECT_DUPLICATE", 64 => "REJECT_NONSTANDARD", 65 => "REJECT_DUST", 66 => "REJECT_INSUFFICIENTFEE", 67 => "REJECT_CHECKPOINT"}

Constructors

new(message : String = "", ccode : UInt8 = 1, reason : String = "")

Class methods

from_payload(io : IO)

Instance methods

ccode
ccode_readable
inspect

Returns an unambiguous and information-rich string representation of this object, typically intended for developers.

This method should usually not be overridden. It delegates to #inspect(IO) which can be overridden for custom implementations.

Also see #to_s.

message
reason
to_payload

overloaded by payload macro