mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Merge be969292db into merged_master (Bitcoin PR bitcoin/bitcoin#30552)
This commit is contained in:
commit
76b4d37de0
1 changed files with 5 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue