mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +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)
|
name = '{}->{}'.format(self.name, f.name)
|
||||||
# Allocate these off the array itself, if they need alloc.
|
# 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)
|
name, f.lenvar, is_tlv=True)
|
||||||
else:
|
else:
|
||||||
if f.is_assignable():
|
if f.is_assignable():
|
||||||
|
|||||||
Reference in New Issue
Block a user