MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / deserialize

Method deserialize

test/functional/test_framework/messages.py:1310–1316  ·  view source on GitHub ↗
(self, f)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 3

deser_stringFunction · 0.85
deser_uint256Function · 0.85
readMethod · 0.45

Tested by

no test coverage detected