mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Merge b99a1633b2 into merged_master (Bitcoin PR #19781)
This commit is contained in:
commit
ca42c615f0
2 changed files with 10 additions and 27 deletions
|
|
@ -1920,9 +1920,9 @@ class msg_sendcmpct:
|
|||
__slots__ = ("announce", "version")
|
||||
msgtype = b"sendcmpct"
|
||||
|
||||
def __init__(self):
|
||||
self.announce = False
|
||||
self.version = 1
|
||||
def __init__(self, announce=False, version=1):
|
||||
self.announce = announce
|
||||
self.version = version
|
||||
|
||||
def deserialize(self, f):
|
||||
self.announce = struct.unpack("<?", f.read(1))[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue