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

Function preapprovekeysend_succeed

plugins/keysend.c:161–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159};
160
161static struct command_result *
162preapprovekeysend_succeed(struct command *cmd,
163 const char *method,
164 const char *buf,
165 const jsmntok_t *result,
166 struct payment *p)
167{
168 /* Now we can conclude `check` command */
169 if (command_check_only(cmd)) {
170 return command_check_done(cmd);
171 }
172
173 /* We're keeping this around now */
174 tal_steal(cmd->plugin, notleak(p));
175 payment_start(p);
176 return command_still_pending(cmd);
177}
178
179static struct command_result *json_keysend(struct command *cmd, const char *buf,
180 const jsmntok_t *params)

Callers

nothing calls this directly

Calls 4

command_check_onlyFunction · 0.70
command_check_doneFunction · 0.70
command_still_pendingFunction · 0.70
payment_startFunction · 0.50

Tested by

no test coverage detected