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

Method msg_deser

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

Source from the content-addressed store, hash-verified

437
438 @classmethod
439 def msg_deser(cls, f, protover=PROTO_VERSION):
440 c = cls()
441 c.nonce = struct.unpack(b"<Q", ser_read(f,8))[0]
442 return c
443
444 def msg_ser(self, f):
445 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