Removes the with_witness named argument from CBlock.serialize(). p2p_segwit requires non-witness serialization for computing the proper block weight, which is why an explicit serialize_without_witness has been added (this is the same as existing design on CTransaction).
Drops msg_witness_blocktxn in favor of msg_blocktxn, which now uses serialization with witness by default and unconditionally.
Fixes #1032, Follow up to #1029
Removes the
with_witness
named argument fromCBlock.serialize()
.p2p_segwit
requires non-witness serialization for computing the proper block weight, which is why an explicitserialize_without_witness
has been added (this is the same as existing design onCTransaction
).Drops
msg_witness_blocktxn
in favor ofmsg_blocktxn
, which now uses serialization with witness by default and unconditionally.