(self, f)
| 1308 | self.data = 0 |
| 1309 | |
| 1310 | def deserialize(self, f): |
| 1311 | self.message = deser_string(f) |
| 1312 | self.code = struct.unpack("<B", f.read(1))[0] |
| 1313 | self.reason = deser_string(f) |
| 1314 | if (self.code != self.REJECT_MALFORMED and |
| 1315 | (self.message == b"block" or self.message == b"tx")): |
| 1316 | self.data = deser_uint256(f) |
| 1317 | |
| 1318 | def serialize(self): |
| 1319 | r = ser_string(self.message) |
nothing calls this directly
no test coverage detected