MCPcopy Create free account
hub / github.com/ElementsProject/lightning / lockin_has_completed

Function lockin_has_completed

lightningd/channel_control.c:1088–1104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1086}
1087
1088void lockin_has_completed(struct channel *channel, bool record_push)
1089{
1090 struct lightningd *ld = channel->peer->ld;
1091
1092 /* Fees might have changed (and we use IMMEDIATE once we're funded),
1093 * so update now. */
1094 try_update_feerates(ld, channel);
1095
1096 try_update_blockheight(ld, channel);
1097
1098 /* Emit an event for the channel open (or channel proposal if blockheight
1099 * is zero) */
1100 channel_record_open(channel,
1101 channel->scid ?
1102 short_channel_id_blocknum(*channel->scid) : 0,
1103 record_push);
1104}
1105
1106void lockin_complete(struct channel *channel,
1107 enum channel_state expected_state)

Callers 2

depthcb_update_scidFunction · 0.85
lockin_completeFunction · 0.85

Calls 4

try_update_feeratesFunction · 0.85
try_update_blockheightFunction · 0.85
channel_record_openFunction · 0.85

Tested by

no test coverage detected