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

Method msg_deser

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

Source from the content-addressed store, hash-verified

295
296 @classmethod
297 def msg_deser(cls, f, protover=PROTO_VERSION):
298 c = cls()
299 c.locator = CBlockLocator.stream_deserialize(f)
300 c.hashstop = ser_read(f, 32)
301 return c
302
303 def msg_ser(self, f):
304 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