| 1486 | } |
| 1487 | |
| 1488 | static struct command_result * |
| 1489 | after_getfeerate(struct command *cmd, |
| 1490 | const char *buf, |
| 1491 | const jsmntok_t *result, |
| 1492 | struct multifundchannel_command *mfc) |
| 1493 | { |
| 1494 | const char *err; |
| 1495 | u32 feerate; |
| 1496 | |
| 1497 | plugin_log(mfc->cmd->plugin, LOG_DBG, |
| 1498 | "mfc %"PRIu64": 'parsefeerate' done", mfc->id); |
| 1499 | |
| 1500 | err = json_scan(tmpctx, buf, result, |
| 1501 | "{perkw:%}", |
| 1502 | JSON_SCAN(json_to_number, &feerate)); |
| 1503 | if (err) |
| 1504 | mfc_fail(mfc, JSONRPC2_INVALID_PARAMS, |
| 1505 | "Unable to parse feerate %s: %*.s", |
| 1506 | err, json_tok_full_len(result), |
| 1507 | json_tok_full(buf, result)); |
| 1508 | |
| 1509 | return perform_fundpsbt(mfc, feerate); |
| 1510 | } |
| 1511 | |
| 1512 | static struct command_result * |
| 1513 | getfeerate(struct multifundchannel_command *mfc) |
nothing calls this directly
no test coverage detected