Are blockheights all agreed by both sides? */
| 61 | |
| 62 | /* Are blockheights all agreed by both sides? */ |
| 63 | bool blockheight_changes_done(const struct height_states *height_states, |
| 64 | bool ignore_uncommitted) |
| 65 | { |
| 66 | size_t num_blockheights = 0; |
| 67 | for (size_t i = 0; i < ARRAY_SIZE(height_states->height); i++) { |
| 68 | if (ignore_uncommitted |
| 69 | && (i == RCVD_ADD_HTLC || i == SENT_ADD_HTLC)) |
| 70 | continue; |
| 71 | num_blockheights += (height_states->height[i] != NULL); |
| 72 | } |
| 73 | return num_blockheights == 1; |
| 74 | } |
| 75 | |
| 76 | bool inc_height_state(struct height_states *height_states, |
| 77 | enum htlc_state hstate) |
no outgoing calls
no test coverage detected