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

Function psbt_error

plugins/spender/openchannel.c:1037–1050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1035}
1036
1037static struct command_result *psbt_error(struct command *aux_cmd,
1038 const char *methodname,
1039 const char *buf,
1040 const jsmntok_t *result,
1041 struct channel_id *cid)
1042{
1043 plugin_log(aux_cmd->plugin, LOG_UNUSUAL,
1044 "Failed %s for waiting channel %s: %.*s",
1045 methodname,
1046 fmt_channel_id(tmpctx, cid),
1047 json_tok_full_len(result),
1048 json_tok_full(buf, result));
1049 return aux_command_done(aux_cmd);
1050}
1051
1052static struct command_result *sendpsbt_done(struct command *aux_cmd,
1053 const char *methodname,

Callers

nothing calls this directly

Calls 5

aux_command_doneFunction · 0.85
plugin_logFunction · 0.50
fmt_channel_idFunction · 0.50
json_tok_full_lenFunction · 0.50
json_tok_fullFunction · 0.50

Tested by

no test coverage detected