Generate shutdown script at channel close
authorJeffrey Czyz <jkczyz@gmail.com>
Mon, 26 Jul 2021 18:04:44 +0000 (14:04 -0400)
committerJeffrey Czyz <jkczyz@gmail.com>
Sat, 31 Jul 2021 05:13:35 +0000 (00:13 -0500)
When a shutdown script is omitted from open_channel or accept_channel,
it must be provided when sending shutdown. Generate the shutdown script
at channel closing time in this case rather at channel opening.

This requires producing a ChannelMonitorUpdate with the shutdown script
since it is no longer known at ChannelMonitor creation.


No differences found