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

Function psbt_fund_failed

plugins/funder.c:510–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508}
509
510static struct command_result *
511psbt_fund_failed(struct command *cmd,
512 const char *method,
513 const char *buf,
514 const jsmntok_t *error,
515 struct open_info *info)
516{
517 /* Attempt to fund a psbt for this open failed.
518 * We probably ran out of funds (race?) */
519 plugin_log(cmd->plugin, LOG_INFORM,
520 "%s: unable to secure %s from wallet,"
521 " continuing channel open to %s"
522 " without our participation. err %.*s",
523 method,
524 fmt_amount_sat(tmpctx, info->our_funding),
525 fmt_node_id(tmpctx, &info->id),
526 json_tok_full_len(error),
527 json_tok_full(buf, error));
528
529 funding_queue_done(info);
530 return command_hook_success(cmd);
531}
532
533/* They give msats, we want sats */
534static bool json_to_msat_as_sats(const char *buffer, const jsmntok_t *tok,

Callers

nothing calls this directly

Calls 7

fmt_node_idFunction · 0.85
funding_queue_doneFunction · 0.85
plugin_logFunction · 0.70
command_hook_successFunction · 0.70
fmt_amount_satFunction · 0.50
json_tok_full_lenFunction · 0.50
json_tok_fullFunction · 0.50

Tested by

no test coverage detected