(self, with_witness=True)
| 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 |