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

Function payment_status_in_db

wallet/wallet.h:335–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333};
334
335static inline enum payment_status payment_status_in_db(enum payment_status w)
336{
337 switch (w) {
338 case PAYMENT_PENDING:
339 BUILD_ASSERT(PAYMENT_PENDING == 0);
340 return w;
341 case PAYMENT_COMPLETE:
342 BUILD_ASSERT(PAYMENT_COMPLETE == 1);
343 return w;
344 case PAYMENT_FAILED:
345 BUILD_ASSERT(PAYMENT_FAILED == 2);
346 return w;
347 }
348 fatal("%s: %u is invalid", __func__, w);
349}
350
351/* Outgoing payments. A simple persisted representation
352 * of a payment we initiated. This can be used by

Callers 4

payment_get_detailsFunction · 0.85
payments_by_statusFunction · 0.85

Calls 1

fatalFunction · 0.50

Tested by

no test coverage detected