mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-28 18:23:16 +02:00
test: add parameterized constructor for msg_sendcmpct()
This commit is contained in:
@@ -1461,9 +1461,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]
|
||||
|
Reference in New Issue
Block a user