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

Method msg_deser

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

Source from the content-addressed store, hash-verified

417
418 @classmethod
419 def msg_deser(cls, f, protover=PROTO_VERSION):
420 c = cls()
421 c.nonce = struct.unpack(b"<Q", ser_read(f, 8))[0]
422 return c
423
424 def msg_ser(self, f):
425 f.write(struct.pack(b"<Q", self.nonce))

Callers

nothing calls this directly

Calls 1

ser_readFunction · 0.85

Tested by

no test coverage detected