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

Function cmd_state_string

plugins/spender/splice.c:23–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21};
22
23static const char *cmd_state_string(enum splice_cmd_state state)
24{
25 switch (state) {
26 case SPLICE_CMD_NONE:
27 return " ";
28 case SPLICE_CMD_PENDING:
29 return " PENDING ";
30 case SPLICE_CMD_INIT:
31 return " INIT ";
32 case SPLICE_CMD_UPDATE:
33 return " UPDATE ";
34 case SPLICE_CMD_UPDATE_NEEDS_CHANGES:
35 return "UPDATE_NEEDS_CHANGES";
36 case SPLICE_CMD_UPDATE_DONE:
37 return " UPDATE_DONE ";
38 case SPLICE_CMD_RECVED_SIGS:
39 return " RECVED_SIGS ";
40 case SPLICE_CMD_DONE:
41 return " DONE ";
42 }
43 return NULL;
44}
45
46static void add_to_debug_log(struct splice_cmd *scmd, const char *phase)
47{

Callers 1

add_to_debug_logFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected