def on_inv(self, message):
    want = msg_getdata()
    for i in message.inv:
        if (i.type != 0):
            want.inv.append(i)
    if len(want.inv):
        self.send_message(want)
def on_inv(self, message):
    want = msg_getdata()
    for i in message.inv:
        if (i.type != 0):
            want.inv.append(i)
    if len(want.inv):
        self.send_message(want)