MCPcopy Create free account
hub / github.com/ElementsProject/lightning / payment_status_to_string

Function payment_status_to_string

lightningd/pay.c:69–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69static const char *payment_status_to_string(const enum payment_status status)
70{
71 switch (status) {
72 case PAYMENT_COMPLETE:
73 return "complete";
74 case PAYMENT_FAILED:
75 return "failed";
76 case PAYMENT_PENDING:
77 return "pending";
78 }
79 //This should never happen
80 abort();
81}
82
83
84static void destroy_waitsendpay_command(struct waitsendpay_command *pc)

Callers 2

sendpay_index_incFunction · 0.85
json_delpayFunction · 0.85

Calls 1

abortFunction · 0.85

Tested by

no test coverage detected