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

Method serialize

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

Source from the content-addressed store, hash-verified

347 self.scriptPubKey = deser_string(f)
348
349 def serialize(self):
350 r = b""
351 r += struct.pack("<q", self.nValue)
352 r += ser_string(self.scriptPubKey)
353 return r
354
355 def __repr__(self):
356 return "CTxOut(nValue=%i.%08i scriptPubKey=%s)" \

Callers 1

run_testMethod · 0.95

Calls 1

ser_stringFunction · 0.85

Tested by

no test coverage detected