mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
pyln-proto: use vals for subtype parsing
This commit is contained in:
parent
21d87f7075
commit
c8579b99d0
@ -305,7 +305,7 @@ other types. Since 'msgtype' is almost identical, it inherits from this too.
|
||||
def read(self, io_in: BufferedIOBase, otherfields: Dict[str, Any]) -> Optional[Dict[str, Any]]:
|
||||
vals = {}
|
||||
for field in self.fields:
|
||||
val = field.fieldtype.read(io_in, otherfields)
|
||||
val = field.fieldtype.read(io_in, vals)
|
||||
if val is None:
|
||||
# If first field fails to read, we return None.
|
||||
if field == self.fields[0]:
|
||||
|
Loading…
Reference in New Issue
Block a user