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

Function payment_status_to_string

lightningd/pay.c:56–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56static 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
71static void destroy_sendpay_command(struct sendpay_command *pc)

Callers 1

json_delpayFunction · 0.85

Calls 1

abortFunction · 0.85

Tested by

no test coverage detected