| 1707 | } |
| 1708 | |
| 1709 | static char *option_lease_weight_max(struct command *cmd, const char *arg, |
| 1710 | bool check_only, |
| 1711 | struct funder_policy *policy) |
| 1712 | { |
| 1713 | u16 fw; |
| 1714 | char *problem = u16_option(cmd, arg, false, &fw); |
| 1715 | |
| 1716 | if (problem || check_only) |
| 1717 | return problem; |
| 1718 | |
| 1719 | if (!policy->rates) |
| 1720 | policy->rates = default_lease_rates(policy); |
| 1721 | policy->rates->funding_weight = fw; |
| 1722 | return NULL; |
| 1723 | } |
| 1724 | |
| 1725 | static char *amount_sat_or_u64_option(struct command *cmd, |
| 1726 | const char *arg, |
nothing calls this directly
no test coverage detected