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

Function psbt_fund_failed

plugins/funder.c:340–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340static struct command_result *
341psbt_fund_failed(struct command *cmd,
342 const char *buf,
343 const jsmntok_t *error,
344 struct open_info *info)
345{
346 /* Attempt to fund a psbt for this open failed.
347 * We probably ran out of funds (race?) */
348 plugin_log(cmd->plugin, LOG_INFORM,
349 "Unable to secure %s from wallet,"
350 " continuing channel open to %s"
351 " without our participation. err %.*s",
352 type_to_string(tmpctx, struct amount_sat,
353 &info->our_funding),
354 type_to_string(tmpctx, struct node_id,
355 &info->id),
356 json_tok_full_len(error),
357 json_tok_full(buf, error));
358
359 return command_hook_success(cmd);
360}
361
362/* They give msats, we want sats */
363static bool json_to_msat_as_sats(const char *buffer, const jsmntok_t *tok,

Callers

nothing calls this directly

Calls 5

command_hook_successFunction · 0.85
plugin_logFunction · 0.70
type_to_stringClass · 0.50
json_tok_full_lenFunction · 0.50
json_tok_fullFunction · 0.50

Tested by

no test coverage detected