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

Function htlc_state_name

common/htlc_state.c:7–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <common/htlc_state.h>
6
7const char *htlc_state_name(enum htlc_state s)
8{
9 size_t i;
10
11 for (i = 0; enum_htlc_state_names[i].name; i++)
12 if (enum_htlc_state_names[i].v == s)
13 return enum_htlc_state_names[i].name;
14 return "unknown";
15}
16
17/* This is the flags for each state. */
18static const int per_state_bits[] = {

Callers 15

fmt_fee_statesFunction · 0.70
fmt_height_statesFunction · 0.70
fixup_hinFunction · 0.50
got_revoke_msgFunction · 0.50
send_fail_or_fulfillFunction · 0.50
dump_htlcFunction · 0.50
channel_fulfill_htlcFunction · 0.50
channel_fail_htlcFunction · 0.50
htlc_incstateFunction · 0.50
fee_incstateFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected