| 338 | } |
| 339 | |
| 340 | static struct command_result * |
| 341 | psbt_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 */ |
| 363 | static bool json_to_msat_as_sats(const char *buffer, const jsmntok_t *tok, |
nothing calls this directly
no test coverage detected