| 657 | } |
| 658 | |
| 659 | static char *opt_force_tmp_channel_id(const char *optarg, struct lightningd *ld) |
| 660 | { |
| 661 | tal_free(ld->dev_force_tmp_channel_id); |
| 662 | ld->dev_force_tmp_channel_id = tal(ld, struct channel_id); |
| 663 | if (!hex_decode(optarg, strlen(optarg), |
| 664 | ld->dev_force_tmp_channel_id, |
| 665 | sizeof(*ld->dev_force_tmp_channel_id))) |
| 666 | return tal_fmt(tmpctx, "Unable to parse channel id '%s'", optarg); |
| 667 | return NULL; |
| 668 | } |
| 669 | |
| 670 | static char *opt_force_channel_secrets(const char *optarg, |
| 671 | struct lightningd *ld) |
nothing calls this directly
no test coverage detected