mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 08:34:20 +01:00
lightningd: set cid correctly in peer->uncommitted_channel.
Setting it to 0xfffff... is just confusing. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
neil saitug
parent
98185dfc2b
commit
08e3e979c8
@@ -61,8 +61,6 @@ new_uncommitted_channel(struct peer *peer)
|
||||
*/
|
||||
uc->minimum_depth = ld->config.anchor_confirms;
|
||||
|
||||
memset(&uc->cid, 0xFF, sizeof(uc->cid));
|
||||
|
||||
/* Declare the new channel to the HSM. */
|
||||
new_channel_msg = towire_hsmd_new_channel(NULL, &uc->peer->id, uc->dbid);
|
||||
if (!wire_sync_write(ld->hsm_fd, take(new_channel_msg)))
|
||||
|
||||
Reference in New Issue
Block a user