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