change default Python block serialization to witness

This commit is contained in:
Gregory Sanders 2019-04-02 10:18:12 -04:00
parent 717fd58c4b
commit 124ea38e39

View file

@ -605,7 +605,7 @@ class CBlock(CBlockHeader):
super(CBlock, self).deserialize(f) super(CBlock, self).deserialize(f)
self.vtx = deser_vector(f, CTransaction) self.vtx = deser_vector(f, CTransaction)
def serialize(self, with_witness=False): def serialize(self, with_witness=True):
r = b"" r = b""
r += super(CBlock, self).serialize() r += super(CBlock, self).serialize()
if with_witness: if with_witness: