attach a command to this payment */
| 192 | |
| 193 | /* attach a command to this payment */ |
| 194 | bool payment_register_command(struct payment *p, struct command *cmd) |
| 195 | { |
| 196 | assert(p); |
| 197 | assert(cmd); |
| 198 | assert(p->cmd_array); |
| 199 | tal_arr_expand(&p->cmd_array, cmd); |
| 200 | return true; |
| 201 | } |
| 202 | |
| 203 | /* are there pending commands on this payment? */ |
| 204 | bool payment_commands_empty(const struct payment *p) |