0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-08 10:31:50 -05:00

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)
self.vtx = deser_vector(f, CTransaction)
def serialize(self, with_witness=False):
def serialize(self, with_witness=True):
r = b""
r += super(CBlock, self).serialize()
if with_witness: