| 5 | #include <common/htlc_state.h> |
| 6 | |
| 7 | const char *htlc_state_name(enum htlc_state s) |
| 8 | { |
| 9 | size_t i; |
| 10 | |
| 11 | for (i = 0; enum_htlc_state_names[i].name; i++) |
| 12 | if (enum_htlc_state_names[i].v == s) |
| 13 | return enum_htlc_state_names[i].name; |
| 14 | return "unknown"; |
| 15 | } |
| 16 | |
| 17 | /* This is the flags for each state. */ |
| 18 | static const int per_state_bits[] = { |
no outgoing calls
no test coverage detected