Sha256: 44c59b5808a184763c362f512e948751f4e8e3f37e369e3a633b44cf3c6e4544
Contents?: true
Size: 410 Bytes
Versions: 24
Compression:
Stored size: 410 Bytes
Contents
module Bitcoin module Message # pong message # https://bitcoin.org/en/developer-reference#pong class Pong < Base COMMAND = 'pong' attr_reader :nonce def initialize(nonce) @nonce = nonce end def self.parse_from_payload(payload) new(payload.unpack('Q').first) end def to_payload [nonce].pack('Q') end end end end
Version data entries
24 entries across 24 versions & 1 rubygems