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

Function wallet_forward_status_in_db

wallet/wallet.h:123–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121};
122
123static inline enum forward_status wallet_forward_status_in_db(enum forward_status s)
124{
125 switch (s) {
126 case FORWARD_OFFERED:
127 BUILD_ASSERT(FORWARD_OFFERED == 0);
128 return s;
129 case FORWARD_SETTLED:
130 BUILD_ASSERT(FORWARD_SETTLED == 1);
131 return s;
132 case FORWARD_FAILED:
133 BUILD_ASSERT(FORWARD_FAILED == 2);
134 return s;
135 case FORWARD_LOCAL_FAILED:
136 BUILD_ASSERT(FORWARD_LOCAL_FAILED == 3);
137 return s;
138 case FORWARD_ANY:
139 break;
140 }
141 fatal("%s: %u is invalid", __func__, s);
142}
143
144static inline const char* forward_status_name(enum forward_status status)
145{

Callers 4

wallet_forward_deleteFunction · 0.85

Calls 1

fatalFunction · 0.50

Tested by

no test coverage detected