| 508 | } |
| 509 | |
| 510 | static struct command_result * |
| 511 | psbt_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 */ |
| 534 | static bool json_to_msat_as_sats(const char *buffer, const jsmntok_t *tok, |
nothing calls this directly
no test coverage detected