module Bitcoin::Message::CFParser

Public Instance Methods

parse_from_payload(payload) click to toggle source
# File lib/bitcoin/message/cf_parser.rb, line 5
def parse_from_payload(payload)
  type, start, hash = payload.unpack('CLH*')
  self.new(type, start, hash)
end
to_payload() click to toggle source
# File lib/bitcoin/message/cf_parser.rb, line 10
def to_payload
  [filter_type, start_height, stop_hash].pack('CLH*')
end