Merge be969292db into merged_master (Bitcoin PR bitcoin/bitcoin#30552)

This commit is contained in:
ivanlele 2026-03-10 15:36:15 +00:00
commit 76b4d37de0
No known key found for this signature in database

View file

@ -1777,8 +1777,11 @@ class msg_tx:
__slots__ = ("tx",)
msgtype = b"tx"
def __init__(self, tx=CTransaction()):
self.tx = tx
def __init__(self, tx=None):
if tx is None:
self.tx = CTransaction()
else:
self.tx = tx
def deserialize(self, f):
self.tx.deserialize(f)