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

Function start_height_update

common/blockheight_states.c:46–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void start_height_update(struct height_states *height_states,
47 enum side opener,
48 u32 blockheight)
49{
50 /* Same as the feerate states */
51 enum htlc_state start = first_fee_state(opener);
52
53 /* BOLT #2:
54 * Unlike an HTLC, `update_fee` is never closed but simply replaced.
55 */
56 if (height_states->height[start] == NULL)
57 height_states->height[start] = tal(height_states, u32);
58 *height_states->height[start] = blockheight;
59}
60
61
62/* Are blockheights all agreed by both sides? */

Callers 1

Calls 1

first_fee_stateFunction · 0.85

Tested by

no test coverage detected