| 724 | } |
| 725 | |
| 726 | static struct command_result * |
| 727 | fundchannel_complete_ok(struct command *cmd, |
| 728 | const char *buf, |
| 729 | const jsmntok_t *result, |
| 730 | struct multifundchannel_destination *dest) |
| 731 | { |
| 732 | struct multifundchannel_command *mfc = dest->mfc; |
| 733 | const jsmntok_t *channel_id_tok; |
| 734 | |
| 735 | plugin_log(mfc->cmd->plugin, LOG_DBG, |
| 736 | "mfc %"PRIu64", dest %u: fundchannel_complete %s done.", |
| 737 | mfc->id, dest->index, |
| 738 | node_id_to_hexstr(tmpctx, &dest->id)); |
| 739 | |
| 740 | channel_id_tok = json_get_member(buf, result, "channel_id"); |
| 741 | if (!channel_id_tok) |
| 742 | plugin_err(cmd->plugin, |
| 743 | "fundchannel_complete no channel_id: %.*s", |
| 744 | json_tok_full_len(result), |
| 745 | json_tok_full(buf, result)); |
| 746 | json_to_channel_id(buf, channel_id_tok, &dest->channel_id); |
| 747 | |
| 748 | dest->state = MULTIFUNDCHANNEL_COMPLETED; |
| 749 | return fundchannel_complete_done(dest); |
| 750 | } |
| 751 | |
| 752 | static struct command_result * |
| 753 | fundchannel_complete_err(struct command *cmd, |
nothing calls this directly
no test coverage detected