channeld: code to send wrong_funding if lightningd says to.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2021-03-16 06:55:52 +10:30
parent 80c2f28373
commit 820fbcd65a
10 changed files with 42 additions and 15 deletions

View File

@@ -1647,7 +1647,8 @@ static struct command_result *json_close(struct command *cmd,
} else
msg = towire_channeld_send_shutdown(
NULL,
channel->shutdown_scriptpubkey[LOCAL]);
channel->shutdown_scriptpubkey[LOCAL],
channel->shutdown_wrong_funding);
subd_send_msg(channel->owner, take(msg));
}