lightningd: always tell connectd the channel id.

This means lightningd needs to create the temporary one and tell it to
openingd/dualopend, rather than the other way around.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2022-03-23 06:57:30 +10:30
parent 57263a3eb2
commit 2bc58e2327
8 changed files with 24 additions and 12 deletions

View File

@@ -235,7 +235,6 @@ struct channel *new_unsaved_channel(struct peer *peer,
"chan#%"PRIu64,
channel->unsaved_dbid);
memset(&channel->cid, 0xFF, sizeof(channel->cid));
channel->our_config.id = 0;
channel->open_attempt = NULL;