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

Method serialize

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

Source from the content-addressed store, hash-verified

1316 self.data = deser_uint256(f)
1317
1318 def serialize(self):
1319 r = ser_string(self.message)
1320 r += struct.pack("<B", self.code)
1321 r += ser_string(self.reason)
1322 if (self.code != self.REJECT_MALFORMED and
1323 (self.message == b"block" or self.message == b"tx")):
1324 r += ser_uint256(self.data)
1325 return r
1326
1327 def __repr__(self):
1328 return "msg_reject: %s %d %s [%064x]" \

Callers

nothing calls this directly

Calls 2

ser_stringFunction · 0.85
ser_uint256Function · 0.85

Tested by

no test coverage detected