channeld: enforce option_upfront_shutdown_script.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-05-01 10:17:11 +09:30
parent cfebe66762
commit 99a0345ca8
3 changed files with 28 additions and 2 deletions

View File

@@ -392,7 +392,8 @@ void peer_start_channeld(struct channel *channel,
funding_signed,
reached_announce_depth,
&last_remote_per_commit_secret,
channel->peer->localfeatures);
channel->peer->localfeatures,
channel->remote_upfront_shutdown_script);
/* We don't expect a response: we are triggered by funding_depth_cb. */
subd_send_msg(channel->owner, take(initmsg));