| 1678 | |
| 1679 | |
| 1680 | class msg_getdata: |
| 1681 | __slots__ = ("inv",) |
| 1682 | msgtype = b"getdata" |
| 1683 | |
| 1684 | def __init__(self, inv=None): |
| 1685 | self.inv = inv if inv is not None else [] |
| 1686 | |
| 1687 | def deserialize(self, f): |
| 1688 | self.inv = deser_vector(f, CInv) |
| 1689 | |
| 1690 | def serialize(self): |
| 1691 | return ser_vector(self.inv) |
| 1692 | |
| 1693 | def __repr__(self): |
| 1694 | return "msg_getdata(inv=%s)" % (repr(self.inv)) |
| 1695 | |
| 1696 | |
| 1697 | class msg_getblocks: |
no outgoing calls