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

Method serialize

test/functional/test_framework/messages.py:804–811  ·  view source on GitHub ↗
(self, with_witness=True)

Source from the content-addressed store, hash-verified

802 self.vtx = deser_vector(f, CTransaction)
803
804 def serialize(self, with_witness=True):
805 r = b""
806 r += super().serialize()
807 if with_witness:
808 r += ser_vector(self.vtx, "serialize_with_witness")
809 else:
810 r += ser_vector(self.vtx, "serialize_without_witness")
811 return r
812
813 # Calculate the merkle root given a vector of transaction hashes
814 @classmethod

Callers 4

test_timewarpMethod · 0.95
run_testMethod · 0.95
mineMethod · 0.95
get_weightMethod · 0.95

Calls 2

ser_vectorFunction · 0.85
serializeMethod · 0.45

Tested by 1

test_timewarpMethod · 0.76