| 1282 | |
| 1283 | |
| 1284 | class msg_getdata: |
| 1285 | __slots__ = ("inv",) |
| 1286 | msgtype = b"getdata" |
| 1287 | |
| 1288 | def __init__(self, inv=None): |
| 1289 | self.inv = inv if inv is not None else [] |
| 1290 | |
| 1291 | def deserialize(self, f): |
| 1292 | self.inv = deser_vector(f, CInv) |
| 1293 | |
| 1294 | def serialize(self): |
| 1295 | return ser_vector(self.inv) |
| 1296 | |
| 1297 | def __repr__(self): |
| 1298 | return "msg_getdata(inv=%s)" % (repr(self.inv)) |
| 1299 | |
| 1300 | |
| 1301 | class msg_getblocks: |
no outgoing calls