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

Method serialize

test/functional/test_framework/messages.py:635–642  ·  view source on GitHub ↗
(self, with_witness=False, legacy=True)

Source from the content-addressed store, hash-verified

633 self.vtx = deser_vector(f, CTransaction)
634
635 def serialize(self, with_witness=False, legacy=True):
636 r = b""
637 r += super(CBlock, self).serialize(legacy=legacy)
638 if with_witness:
639 r += ser_vector(self.vtx, "serialize_with_witness")
640 else:
641 r += ser_vector(self.vtx, "serialize_without_witness")
642 return r
643
644 # Calculate the merkle root given a vector of transaction hashes
645 @classmethod

Callers 2

run_testMethod · 0.95
run_testMethod · 0.95

Calls 2

ser_vectorFunction · 0.85
serializeMethod · 0.45

Tested by

no test coverage detected