| 44 | } |
| 45 | |
| 46 | void 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? */ |
no test coverage detected