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

Function forward_status_name

wallet/wallet.h:144–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144static inline const char* forward_status_name(enum forward_status status)
145{
146 switch(status) {
147 case FORWARD_OFFERED:
148 return "offered";
149 case FORWARD_SETTLED:
150 return "settled";
151 case FORWARD_FAILED:
152 return "failed";
153 case FORWARD_LOCAL_FAILED:
154 return "local_failed";
155 case FORWARD_ANY:
156 return "any";
157 }
158 abort();
159}
160
161bool string_to_forward_status(const char *status_str, size_t len,
162 enum forward_status *status);

Callers 1

Calls 1

abortFunction · 0.85

Tested by

no test coverage detected