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

Function splice_init_get_result

plugins/spender/splice.c:967–979  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

965}
966
967static struct command_result *splice_init_get_result(struct command *cmd,
968 const char *methodname,
969 const char *buf,
970 const jsmntok_t *result,
971 struct splice_cmd *splice_cmd)
972{
973 const jsmntok_t *tok = json_get_member(buf, result, "psbt");
974
975 tal_free(splice_cmd->psbt);
976 splice_cmd->psbt = json_to_psbt(splice_cmd, buf, tok);
977
978 return continue_splice(splice_cmd->cmd, splice_cmd);
979}
980
981static struct command_result *splice_init(struct command *cmd,
982 struct splice_cmd *splice_cmd,

Callers

nothing calls this directly

Calls 4

json_get_memberFunction · 0.85
tal_freeFunction · 0.85
json_to_psbtFunction · 0.85
continue_spliceFunction · 0.85

Tested by

no test coverage detected