mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
lightningd: initialize channel_type field on dualopend channel creation.
Otherwise a badly-timed listpeerchannels will crash. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -1273,6 +1273,7 @@ wallet_commit_channel(struct lightningd *ld,
|
||||
} else
|
||||
channel->scb = NULL;
|
||||
|
||||
tal_free(channel->type);
|
||||
channel->type = channel_type_dup(channel, type);
|
||||
channel->scb->type = channel_type_dup(channel->scb, type);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user