class BitcoinNode::Protocol::Inv
Public Class Methods
parse(raw)
click to toggle source
# File lib/bitcoin_node/protocol/payloads.rb, line 35 def self.parse(raw) count, payload = VariableIntegerField.parse(raw) invs = Array.new(count) do inv, payload = InventoryVectorField.parse(payload) inv end new(count: count, inventory_list: invs) end