(self, with_witness=False, legacy=True)
| 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 |
no test coverage detected