| 1666 | } |
| 1667 | |
| 1668 | static char *option_lease_weight_max(struct command *cmd, const char *arg, |
| 1669 | bool check_only, |
| 1670 | struct funder_policy *policy) |
| 1671 | { |
| 1672 | u16 fw; |
| 1673 | char *problem = u16_option(cmd, arg, false, &fw); |
| 1674 | |
| 1675 | if (problem || check_only) |
| 1676 | return problem; |
| 1677 | |
| 1678 | if (!policy->rates) |
| 1679 | policy->rates = default_lease_rates(policy); |
| 1680 | policy->rates->funding_weight = fw; |
| 1681 | return NULL; |
| 1682 | } |
| 1683 | |
| 1684 | static char *amount_sat_or_u64_option(struct command *cmd, |
| 1685 | const char *arg, |
nothing calls this directly
no test coverage detected