| 54 | } |
| 55 | |
| 56 | static const char *payment_status_to_string(const enum wallet_payment_status status) |
| 57 | { |
| 58 | switch (status) { |
| 59 | case PAYMENT_COMPLETE: |
| 60 | return "complete"; |
| 61 | case PAYMENT_FAILED: |
| 62 | return "failed"; |
| 63 | case PAYMENT_PENDING: |
| 64 | return "pending"; |
| 65 | } |
| 66 | //This should never happen |
| 67 | abort(); |
| 68 | } |
| 69 | |
| 70 | |
| 71 | static void destroy_sendpay_command(struct sendpay_command *pc) |