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

Method serialize

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

Source from the content-addressed store, hash-verified

441 self.hash = deser_uint256(f)
442
443 def serialize(self):
444 r = b""
445 r += self.type.to_bytes(4, "little")
446 r += ser_uint256(self.hash)
447 return r
448
449 def __repr__(self):
450 return "CInv(type=%s hash=%064x)" \

Callers 15

ser_vectorFunction · 0.45
serializeMethod · 0.45
serializeMethod · 0.45
messages.pyFile · 0.45
serializeMethod · 0.45
serializeMethod · 0.45
serializeMethod · 0.45
get_siphash_keysMethod · 0.45
serializeMethod · 0.45
serializeMethod · 0.45
serializeMethod · 0.45

Calls 2

ser_uint256Function · 0.85
to_bytesMethod · 0.80

Tested by

no test coverage detected