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

Function preapprovekeysend_succeed

plugins/xpay/xpay.c:2987–3001  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2985}
2986
2987static struct command_result *
2988preapprovekeysend_succeed(struct command *cmd,
2989 const char *method,
2990 const char *buf,
2991 const jsmntok_t *result,
2992 struct payment *payment)
2993{
2994 /* Now we can conclude `check` command */
2995 if (command_check_only(cmd)) {
2996 return command_check_done(cmd);
2997 }
2998
2999 /* Actually we don't need a private layer, but unification is easy. */
3000 return populate_private_layer(cmd, payment);
3001}
3002
3003static struct command_result *json_xkeysend(struct command *cmd,
3004 const char *buf,

Callers

nothing calls this directly

Calls 3

populate_private_layerFunction · 0.85
command_check_onlyFunction · 0.50
command_check_doneFunction · 0.50

Tested by

no test coverage detected