change default Python block serialization to witness
This commit is contained in:
parent
717fd58c4b
commit
124ea38e39
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue