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

Method serialize

test/functional/test_framework/messages.py:327–332  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

325 self.nSequence = struct.unpack("<I", f.read(4))[0]
326
327 def serialize(self):
328 r = b""
329 r += self.prevout.serialize()
330 r += ser_string(self.scriptSig)
331 r += struct.pack("<I", self.nSequence)
332 return r
333
334 def __repr__(self):
335 return "CTxIn(prevout=%s scriptSig=%s nSequence=%i)" \

Callers

nothing calls this directly

Calls 2

ser_stringFunction · 0.85
serializeMethod · 0.45

Tested by

no test coverage detected