mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-18 22:54:25 +01:00
subtypes: fixup context reference for subtypes
subtype children should be allocated off of themselves. this was failing to compile for embedded subtypes (subtype within a subtype).
This commit is contained in:
committed by
Rusty Russell
parent
97b938a469
commit
e31111d70b
@@ -958,7 +958,7 @@ class Subtype(Message):
|
||||
|
||||
name = '{}->{}'.format(self.name, f.name)
|
||||
# Allocate these off the array itself, if they need alloc.
|
||||
self.print_fromwire_array('*' + f.name, subcalls, basetype, f,
|
||||
self.print_fromwire_array(name, subcalls, basetype, f,
|
||||
name, f.lenvar, is_tlv=True)
|
||||
else:
|
||||
if f.is_assignable():
|
||||
|
||||
Reference in New Issue
Block a user