| 49 | } |
| 50 | |
| 51 | const char *wait_subsystem_name(enum wait_subsystem subsystem) |
| 52 | { |
| 53 | switch (subsystem) { |
| 54 | case WAIT_SUBSYSTEM_FORWARD: |
| 55 | case WAIT_SUBSYSTEM_SENDPAY: |
| 56 | case WAIT_SUBSYSTEM_INVOICE: |
| 57 | case WAIT_SUBSYSTEM_HTLCS: |
| 58 | case WAIT_SUBSYSTEM_CHAINMOVES: |
| 59 | case WAIT_SUBSYSTEM_CHANNELMOVES: |
| 60 | case WAIT_SUBSYSTEM_NETWORKEVENTS: |
| 61 | return subsystem_names[subsystem]; |
| 62 | } |
| 63 | abort(); |
| 64 | } |
| 65 | |
| 66 | static u64 *wait_index_ptr(struct lightningd *ld, |
| 67 | enum wait_subsystem subsystem, |
no test coverage detected