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

Function start_height_update

common/blockheight_states.c:47–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

first_fee_stateFunction · 0.70

Tested by

no test coverage detected