MCPcopy
hub / github.com/petertodd/python-bitcoinlib / msg_deser

Method msg_deser

bitcoin/messages.py:320–324  ·  view source on GitHub ↗
(cls, f, protover=PROTO_VERSION)

Source from the content-addressed store, hash-verified

318
319 @classmethod
320 def msg_deser(cls, f, protover=PROTO_VERSION):
321 c = cls()
322 c.locator = CBlockLocator.stream_deserialize(f)
323 c.hashstop = ser_read(f, 32)
324 return c
325
326 def msg_ser(self, f):
327 self.locator.stream_serialize(f)

Callers

nothing calls this directly

Calls 2

ser_readFunction · 0.85
stream_deserializeMethod · 0.45

Tested by

no test coverage detected