| 209 | } |
| 210 | |
| 211 | struct command *payment_command(struct payment *p) |
| 212 | { |
| 213 | assert(p); |
| 214 | assert(p->cmd_array); |
| 215 | if (tal_count(p->cmd_array) == 0) |
| 216 | return NULL; |
| 217 | return p->cmd_array[0]; |
| 218 | } |
| 219 | |
| 220 | void register_payment_success(struct payment *payment, |
| 221 | const struct preimage *preimage TAKES) |
no outgoing calls
no test coverage detected