mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-31 18:51:12 +00:00
test: Add msgtype to msg_generic slots
Github-Pull: #32833 Rebased-From: 7dc43ea503a2c145ffd4fe14b794300bfc2bcdee
This commit is contained in:
parent
1c0e19b93a
commit
4b656e2023
@ -1358,7 +1358,7 @@ class msg_block:
|
||||
# for cases where a user needs tighter control over what is sent over the wire
|
||||
# note that the user must supply the name of the msgtype, and the data
|
||||
class msg_generic:
|
||||
__slots__ = ("data")
|
||||
__slots__ = ("msgtype", "data")
|
||||
|
||||
def __init__(self, msgtype, data=None):
|
||||
self.msgtype = msgtype
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user