class Bitcoin::Message::GetCFCheckpt

getcfcheckpt message for BIP-157 github.com/bitcoin/bips/blob/master/bip-0157.mediawiki#getcfcheckpt

Constants

COMMAND

Attributes

filter_type[RW]
stop_hash[RW]

Public Class Methods

new(filter_type, stop_hash) click to toggle source
# File lib/bitcoin/message/get_cfcheckpt.rb, line 13
def initialize(filter_type, stop_hash)
  @filter_type = filter_type
  @stop_hash = stop_hash
end
parse_from_payload(payload) click to toggle source
# File lib/bitcoin/message/get_cfcheckpt.rb, line 18
def self.parse_from_payload(payload)
  type, hash = payload.unpack('CH*')
  self.new(type, hash)
end

Public Instance Methods

to_payload() click to toggle source
# File lib/bitcoin/message/get_cfcheckpt.rb, line 23
def to_payload
  [filter_type, stop_hash].pack('CH*')
end