mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 20:09:18 +01:00
channeld: Send a depth=0 notification when channeld starts up
This is used in order to ensure zeroconf doesn't just wait for the first confirmation despite mindepth being set to 0.
This commit is contained in:
parent
b9817d395f
commit
c98f011479
1 changed files with 7 additions and 0 deletions
|
@ -783,6 +783,13 @@ void peer_start_channeld(struct channel *channel,
|
|||
try_update_blockheight(ld, channel,
|
||||
get_block_height(ld->topology));
|
||||
}
|
||||
|
||||
/* Artificial confirmation event for zeroconf */
|
||||
if (channel_type_has(channel->type, OPT_ZEROCONF))
|
||||
subd_send_msg(
|
||||
channel->owner,
|
||||
take(towire_channeld_funding_depth(
|
||||
NULL, channel->scid, channel->alias[LOCAL], 0)));
|
||||
}
|
||||
|
||||
bool channel_tell_depth(struct lightningd *ld,
|
||||
|
|
Loading…
Add table
Reference in a new issue