| 158 | } |
| 159 | |
| 160 | static const char *fmt_fee_states(const tal_t *ctx, |
| 161 | const struct fee_states *fee_states) |
| 162 | { |
| 163 | char *ret = tal_strdup(ctx, "{"); |
| 164 | for (enum htlc_state i = 0; i < ARRAY_SIZE(fee_states->feerate); i++) { |
| 165 | if (fee_states->feerate[i] != NULL) |
| 166 | tal_append_fmt(&ret, " %s:%u", |
| 167 | htlc_state_name(i), |
| 168 | *fee_states->feerate[i]); |
| 169 | } |
| 170 | tal_append_fmt(&ret, " }"); |
| 171 | return ret; |
| 172 | } |
| 173 | REGISTER_TYPE_TO_STRING(fee_states, fmt_fee_states); |
nothing calls this directly
no test coverage detected